A simple terminal-based Sudoku game built for modularity. I tried to implement dynamic algorithms instead of static ones were I could. (Look at the code) You can also and your own templates and use flags!
Jmeow longnamelongnamelongnamelongnamelongnamelongnamelongnamelongnamelongname
Check their projects out: Just testing things<script>console.log("Will this work?")</script>, Rust JRE, Minecraft Attack Alert, Security testing, SoM Map Botnet, Sapphire (Linux), Ultimate Screen Controller, Convert Stuff, Getting to Philosophy
xuhan
Check their projects out: Extract: Zombie Shooter, The Unconventional Units Converter, Gomoku
Elliot
Check their projects out: Python Ninja Game, Calculator project
Mathieu
Check their project out: decimal Game of Life
arcsin
Check their project out: OhmCalc-sv
Once you ship this you can't edit the description of the project, but you'll be able to add more devlogs and re-ship it as you add new features!
Fixed some typos 2 says ago in 0.1.1...230 Downloads, that's unbelievable! I would have never though that many people are interested in my project AND got Rust installed...can't wait for the voting!
New Demo!
I added a playground link so you can directly test it there - but the pretty-printing isn't that good there...also, building from source isn't that complicated, it has only one dependency (rand). Have fun playing!
SHIPMENT AHEAD!
Terminal-Sudoku
A simple Sudoku game running in a terminal
Features:
-Playing Sudoku in the Terminal
-Detecting when you've messed it up (you only have 1 try!)
-Settings (via flags):
-stopwatch: Keep track of how much time you needed, saves the best one!
-sudoku_maker: Save your game in a string
-templates: use a saved game (state code) to apply it to the current game. It's possible to use your own pre-made template (but not really recommended)
-Stats, so you can keep track of your victories (and failures) each session
-Nice user interface (always a clean screen after each step)
-Written in Rust, so it's pretty performant and lightweight (~1.25mb with the --release flag) and, if anyone wants that (I would wonder), it's pretty memory safe too!
(Took me 18h...)
IT WORKS!
It actually works! Everything!
I'm gonna add some more templates to make it less boring...
Shipment in max 30 mins!
FINALLY! I could ship now, but the only thing left now is adding a standard template to demonstrate the functionality...
licensed under The Unlicense
State:
-523 LOC!
-tried to make it a bit more modular
BUT: some fixes need to be done..
PS: Solving algo also...
--Why is utils.rs so much bigger than main.rs?--
I built the project which the target in mind to make very modular,
meaning you can change things pretty easily and also benefit from utils.rs being a library-like user interface while having a less function-crowded main.rs so you can focus on the actual game logic. Hope that pays off when evaluating...
I wouldn't have thought this project is taking so much time but yeah...I spent 3h on an algorithm I don't use anymore (but it works perfectly fine!) which can be found in the removed.txt file in my repo...anyways, at the moment I am, contrary to some hours ago, actually pretty satisfied. I think the features fine, but to reach the 10h, I will need to do more features...
WHAT NEEDS TO BE DONE:
-algorithm to detect if you did it or messed it up (30 min -1 h
-flags integration (5 - 10 min)
-a bit more if I didn't reach the 10h...
So, yeah...
I don't know what to say, but I think I wasted the past 3h. I deleted the useless env var stuff and work with flags now. I removed 50 lines of code I put a bit of thought in...so yeah...the outcome will be nice and prob ready in like 1h more work. I also think that I at least learned something. See ya!
It's been 3(!) hours and yeah...I have something to show, but mostly internals (see the repo)
Done:
-rudimentary parsing of the settings (stored in an env var)
-messing with filestream (I WON'T mess around with that further
-...
Still, I think the project is mostly done bc the algos / menus are mostly finished
If it's going well, in 2h a showcaseable state is reached, but there are some more things to implement, like pretty-printing etc. I won't make it a wasm library though
Lessons learned:
-Rust is good but I am not
-Not underestimating this kind of stuff
-Don't touch the filesystem (-> permissions...)
250 Lines of Code and still not finished (felt 25% are print statements)
-Visual representaion finished
-Menus 60% done
What I learned:
-It's annoying that you always have to make a new function for every (sub-)menu
-It would be cool to have a terminal game engine (maybe my next project?!)
Goals of this project:
- building a terminal interface to print the field / input something
- providing an algorithm to check if it can get solved / is solved / isn't solvable now
- displaying a live timer
- providing settings for the user
- saving your games (including stats) and settings locally
- optimize the code for speed aswell as binary size
- maybe make it a wasm library (it's Rust!) and build a website with a GUI for it
- think about what else I can do to reach 10h with a simple Sudoku game
Additional pieces of information:
- It's my project to get started so it won't stay at this level
- I will NEVER use AI for this or any other of my project (except for getting ideas what even to do as a project)
- Nice you're even reading this :-)