You are browsing as a guest. Sign up (or log in) to start making projects!

1h 21m 54s logged

Devlog 6


File changes (additions, removals, modification)

  • modification: tui.rs/cli_display.rs -> renamed tui.rs to cli_display.rs to be more accurate since I am not building a TUI-based display/application

Non-code changes

  • In Cargo.toml, I changed the package name to FGOL instead of the generic testing name I had before. This will now reflect on compilation.

Code changes

  • main.rs: I refactored usage of tui.rs to the new file name. I also added a stop to the program that checks if the cells HashSet is empty. If it is, then the program prints the last empty grid frame and notifies the user before stopping.
  • core.rs: No changes.
  • inputs.rs: Major modification to the code in here. Made the input process look nicer, tested the display spacing (including after error messages), overhauled to ask the number of cells that way it is less repetitive if a user wants to add more cells. Added a seperate function to clean the file up a bit (still have some work to do; I don’t think its very readable). Added the crab emoji as the banner for Ferris.
  • cli_display.rs: Changed the cell char to the crab emoji as the banner for Ferris 🦀.

Other

  • Everything is formatted to cargo-fmt & cargo clippy
  • No errors or warnings during compilation.
  • Error handling was tested and the printed lines have spacing to look nice.
  • No external crates or packages; it is entirely self-contained.

Future

  • I may ship like this (as a binary) to see what feedback I may get.
  • If my ship passes I will continue and make a GUI and learn an external crates for that.
  • For testing and playing, I think a web UI is the best. A binary application is not the best (and unnecessary). I will see what my time looks like and maybe I will convert to an actual UI on the web before shipping or find another solution. Otherwise I will compile the .exe myself and host on the GitHub.

Feedback is welcome!

GH: https://github.com/Polycarbohydrate/ferris-s-game-of-life

0
2

Comments 0

No comments yet. Be the first!