Click here to Skip to main content
14,606,383 members
Rate this:
Please Sign up or sign in to vote.
See more:
For my Chess game I have a function that handles the initial pieces distribution. I thought placing it in a CSV file would improve code readability and make it easier to maintain. I am currently having trouble Googling for example references. Could you guys assist me in this?(python)


What I have tried:

I have tried looking at references but can't find any solid exampless
Posted
Updated 10-Jul-20 12:20pm

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

If you're looking for a way to describe the initial position, FEN is commonly used:

What are PGN & FEN?[^]

If you're looking for actual code, I can't help you because I'm not a Python programmer.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100