Sudoku in python
Posté le 28/03/2025 02:54
As my first python program I decided to make Sudoku.
Here's the link
It's really not bad though IMHO- I'm a bit of a perfectionist. It has a nice interface and even a custom small number font. The code is probably not very pythonic or optimized though. I also had to keep it under 300 lines so I could use the Casio python script editor.
Of course this would not have been possible without ExtraPython, so thank you to everyone involved in that! The game can only run on the ExtraPython add-in.
Unfortunately there are no screenshots as I don't know how to build/run the emulator. Maybe someone else can take a few ss/gif?
For this version there are no save states, 4 difficulties, and a limited amount of games available. Lephe tells me support for file read/write will hopefully be added to EP in the near future, and then I can add save states and 100s of games.
Also possibly on the agenda for the future is a reveal/reveal all option. Let me know what you think, because I'm unsure if that's even a positive feature.
If you have any other features requests/comments please let me know!
Citer : Posté le 28/03/2025 23:53 | #
I realized the first file didn't work in the latest PE, so I updated it. It should work now (but note it will not work on PE 0.2.0 only the latest 0.3.0).
Citer : Posté le 29/03/2025 08:43 | #
HI!
I saw your project and I must say that a Sudoku in less than 300 lines is impressive. I wanted to do give you screenshots of your project using PyGint but I just realized that it's your program is for CG calculators and not FX... So I'll be working on a CG version of PyGint and i'll hopefully be able to send you screenshots
Unfortuneatly, I don't think that there is any other alternatives to emulating python programs. While Heath's emulator does exist, it doesn't emulate memory so that wouldn't work. But I might be totally wrong though, there might be some ways to do it.
Par ce que Oct 31= Dec 25
Citer : Posté le 29/03/2025 08:49 | #
I'll check this out. You can take USB screenshots and video captures in PythonExtra with the dev build. Looks like this needs to be a release feature.
Citer : Posté le 29/03/2025 08:50 | #
I realized the first file didn't work in the latest PE, so I updated it. It should work now (but note it will not work on PE 0.2.0 only the latest 0.3.0).
Hi Potchkee,
with Lephe we always try to get ascending compatibility and I am quite surprised to read that you had a former version of Sudoku running on PE0.2.0 but not on PE0.3.0.
It would be great if you could share with us what was not working.
Seems that now it is the opposite, the latest version runs on PE0.3.0 but not anymore on 0.2.0 ? Am I correct ? So please let us know what are the issues, will try to check what's going on as we have a new version in preparation.
BR
Sly
Citer : Posté le 30/03/2025 03:17 | #
Hey
I realized the first file didn't work in the latest PE, so I updated it. It should work now (but note it will not work on PE 0.2.0 only the latest 0.3.0).
Hi Potchkee,
with Lephe we always try to get ascending compatibility and I am quite surprised to read that you had a former version of Sudoku running on PE0.2.0 but not on PE0.3.0.
It would be great if you could share with us what was not working.
Seems that now it is the opposite, the latest version runs on PE0.3.0 but not anymore on 0.2.0 ? Am I correct ? So please let us know what are the issues, will try to check what's going on as we have a new version in preparation.
BR
Sly
It was a problem with the getkey_opt function in gint- in pe 2.0 it doesn't have a parameter for waiting before returning EV_NONE, while in 3.0 that parameter does exist, and all I changed was setting it to None.
By the way, I realized I forgot to remove a line of code I added for testing that goes to the win screen if you hit '5' in certain circumstances, so I'm about to upload a new file fixing that. By the time anyone reads this it should be fixed.
Citer : Posté le 01/04/2025 09:22 | #
Update: more modern look with rounded rectangles, a dark mode and legacy option, an 'about' and 'controls' page, and smooth drawing mechanics. I still needed to keep it under 300 lines so good luck to anyone trying to read the code...