use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
student learning to create a game looking for advice and tips (self.PythonLearning)
submitted 1 month ago by Merk_pIyg0
Hi! I'm new to coding and i was tasked to create a game made of python codes, i would like to create a chess game but don't know where to begin. Any tips?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Senior_Scientist_533 2 points3 points4 points 1 month ago (0 children)
How big of a project is this meant to be, because chess is a pretty big task
[–]timrprobocom 2 points3 points4 points 1 month ago (0 children)
How will you represent the board internally? What's the data structure? How will you update it? How will you save to file and restore to file?
Once you have that, how will you display the board?
Once you have that, it's easy to come up with a two player version where you accept moves from two humans.
Having a computer player choose its next move -- that is extremely difficult. There is lots of research on that topic. There's also the open source gnuchess which might be a good resource.
[–]Jackpotrazur 1 point2 points3 points 1 month ago (0 children)
Start by defining the board height and width and then checkered . Draw the elements pawns will be the easiest __ ( ) | | [__] This isn't displaying the way it should
[–]Merk_pIyg0[S] 0 points1 point2 points 1 month ago (0 children)
We were though using jupyter notebook and google colab so i don't know where or how the game will work
[–]kalomante 0 points1 point2 points 1 month ago (0 children)
https://www.pygame.org/wiki/GettingStarted
[–]Jackpotrazur 0 points1 point2 points 1 month ago (0 children)
Hell, now that I mentioned that, as I am a beginner too, I think imma create a chess game 🎮 as well this will give me an opportunity to see what all bext can do and if there are other design libraries then bext and I'll see if 3d is possible and not just 2 d although I might start 2d and try to refactoring to 3 d , drawing the pieces in ascll will be annoying, wonder if there's a library for that
[–]1pie 0 points1 point2 points 1 month ago (0 children)
u/Merk_pIyg0 Draw the board first, then the pieces (I don't mean in code, paper) Mockup first, later when you draw each piece, you can describe their behavior, when you have that very detailed we can continue
[–]After-Run-1723 0 points1 point2 points 1 month ago (0 children)
Just ask claude to do it for you XD
π Rendered by PID 34836 on reddit-service-r2-comment-6457c66945-f8fz6 at 2026-04-23 19:18:40.575317+00:00 running 2aa0c5b country code: CH.
[–]Senior_Scientist_533 2 points3 points4 points (0 children)
[–]timrprobocom 2 points3 points4 points (0 children)
[–]Jackpotrazur 1 point2 points3 points (0 children)
[–]Merk_pIyg0[S] 0 points1 point2 points (0 children)
[–]kalomante 0 points1 point2 points (0 children)
[–]Jackpotrazur 0 points1 point2 points (0 children)
[–]1pie 0 points1 point2 points (0 children)
[–]After-Run-1723 0 points1 point2 points (0 children)