Commit Graph

12 Commits

Author SHA1 Message Date
epvanhouten
ce403d2d26 Updating README.md 2021-02-27 21:04:32 -06:00
epvanhouten
ed339ccd3f Introduce a view class
Move all the console interaction into a view class making the game logic
isolated from UI.
2021-02-27 20:59:55 -06:00
epvanhouten
4f4ae0b981 Add ViewModels for game loop
Move all UI interaction off of game loop variables.
2021-02-27 20:44:35 -06:00
epvanhouten
74eaccabc1 Isolate prompting from game
Move the user input out of the game logic.
2021-02-27 20:08:03 -06:00
epvanhouten
c206605da5 Introduce enum for directions
Instead of cleverly constructing the output string, explicitly test for
what the resulting direction is.
2021-02-27 19:50:56 -06:00
epvanhouten
8f613a0237 Introduce domain object for ponts
Game is centered around comparing an X,Y point to another X,Y point.
Introduced a domain object to represent that pairing.
2021-02-27 19:19:32 -06:00
epvanhouten
09436ff686 Add a bailout
Forcing a SIGKILL is bad form, give some UI for playing again or bailing.
2021-02-27 19:08:56 -06:00
epvanhouten
75e7e25a05 Introduce game class
Cleanup uses of goto and encapsulate game logic.
2021-02-27 19:07:52 -06:00
epvanhouten
6fb0b5c01f Literal conversion of original
Just taking the original BASIC program and converting it into C# without
adding types or modernizing the control flow.
2021-02-27 17:46:24 -06:00
epvanhouten
ee2f5c27b6 Transscripting original source
Pulled from https://www.atariarchives.org/basicgames/pages/page94.gif
2021-02-27 16:50:59 -06:00
epvanhouten
216e34b622 Bootstrapping empty console
Generated using `dotnet new console --name hurkle`.
2021-02-27 16:36:26 -06:00
Jeff Atwood
f899e5584c add README.md to each language subfolder 2021-02-15 14:22:06 -08:00