Commit Graph

19 Commits

Author SHA1 Message Date
epvanhouten
176457f620 Updating README.md 2021-02-27 21:04:32 -06:00
epvanhouten
25525a5a82 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
8df211b17b Add ViewModels for game loop
Move all UI interaction off of game loop variables.
2021-02-27 20:44:35 -06:00
epvanhouten
47593d0760 Isolate prompting from game
Move the user input out of the game logic.
2021-02-27 20:08:03 -06:00
epvanhouten
8291d08a8d 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
c3308bf028 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
ddafd6436b 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
923302fdb4 Introduce game class
Cleanup uses of goto and encapsulate game logic.
2021-02-27 19:07:52 -06:00
epvanhouten
154cc9f344 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
55dd926e91 Transscripting original source
Pulled from https://www.atariarchives.org/basicgames/pages/page94.gif
2021-02-27 16:50:59 -06:00
epvanhouten
1e2843cc35 Bootstrapping empty console
Generated using `dotnet new console --name hurkle`.
2021-02-27 16:36:26 -06:00
Jeff Atwood
3a39b4b123 add pascal and perl folders for all programs 2021-02-27 13:33:14 -08:00
journich
f39ac57e29 Removed debugging output showing the location of the Hurkle. 2021-02-23 08:49:33 +10:30
Tim
143370069b cleanup 2021-02-22 09:37:34 +10:30
Tim
2822405815 cleanup 2021-02-22 09:24:49 +10:30
Tim
4a71d99d83 cleanup 2021-02-22 09:20:13 +10:30
Tim
7482f6f2f2 Java version of Hurkle 2021-02-18 19:56:44 +10:30
Jeff Atwood
e264c7976f add README.md to each language subfolder 2021-02-15 14:22:06 -08:00
Jeff Atwood
9117add0a4 add all BASIC source files and folders 2021-02-09 19:36:03 -08:00