Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (1 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

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900