Commit Graph

246 Commits

Author SHA1 Message Date
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
Jeff Atwood
7a62d53e16 remove Raku port per new guidelines
feel free to link this port via the readme.md in the program's root folder!
2021-02-27 13:17:04 -08:00
Jeff Atwood
fec6c202f6 Update README.md 2021-02-27 12:57:44 -08:00
Jeff Atwood
25815a6cc0 Update README.md 2021-02-27 12:57:24 -08:00
Jeff Atwood
bc69e5255b Merge pull request #95 from journich/main
Java versions of Kinema,Letter and Literature Quiz
2021-02-26 20:13:12 -08:00
journich
17289e59d8 Java version of Literature Quiz 2021-02-26 16:55:10 +10:30
journich
890b89cfd1 Ensure initial title is shown before game starts 2021-02-26 16:38:21 +10:30
journich
c7c648f876 Java version of Letter 2021-02-26 16:32:38 +10:30
journich
df6646a031 Java version of Kinema 2021-02-26 13:42:39 +10:30
Jeff Atwood
72ca728d49 Merge pull request #93 from nanochess/main
Ported BASKETBALL, BATNUM and CHOMP to Javascript
2021-02-25 14:08:39 -08:00
Jeff Atwood
c32e13f9ee Merge pull request #94 from journich/main
Java versions of Dice and Guess
2021-02-25 14:07:40 -08:00
journich
b219064901 Adjust game name in comment 2021-02-26 08:12:49 +10:30
journich
9f69386c99 Java version of Guess 2021-02-26 08:11:01 +10:30
journich
b0b797bba8 Java version of dice 2021-02-26 07:41:40 +10:30
nanochess
ecf2da0654 Ported BASKETBALL, BATNUM and CHOMP to Javascript 2021-02-25 15:06:21 -06:00
Jeff Atwood
d5660778fe Merge pull request #91 from journich/main
Java version of Change
2021-02-24 21:27:08 -08:00
Jeff Atwood
9a4d3700ff Merge pull request #85 from kthejoker/main
MasterMind in Python
2021-02-24 20:48:53 -08:00
journich
1368330508 Java version of Chemist and documentation fix for method in Change 2021-02-25 15:17:11 +10:30
journich
194ae44892 Java version of Change 2021-02-25 13:38:20 +10:30
Jeff Atwood
a1d795a832 Merge pull request #88 from journich/main
Java version of BatNum game
2021-02-24 18:25:54 -08:00
Jeff Atwood
fdc341376c Merge pull request #90 from BrianWhy/main
Added csharp version of Russion Roulette
2021-02-24 18:25:36 -08:00
Jeff Atwood
e16eaf96f8 Merge pull request #89 from jbanana/main
Added Java version of Buzzword
2021-02-24 18:25:01 -08:00
Brian Young
6eaf45eea7 Added csharp version of Russion Roulette 2021-02-24 18:23:13 -08:00
JBanana
4c1a0d6e74 Added Java version of Buzzword 2021-02-25 01:38:03 +00:00
journich
17d0977808 Java version of BatNum game 2021-02-25 10:27:16 +10:30
Jeff Atwood
65ece8bd77 Merge pull request #87 from nanochess/main
Ported BOMBARDMENT, BOMBS AWAY and BOUNCE to Javascript
2021-02-24 12:27:29 -08:00
nanochess
d23b2c6fa6 Ported BOMBARDMENT, BOMBS AWAY and BOUNCE to Javascript 2021-02-24 14:19:31 -06:00
Jeff Atwood
f3cbcfd105 Merge pull request #86 from journich/main
Java version of Train
2021-02-24 10:59:14 -08:00
journich
2d3a5e1004 Java version of Train 2021-02-24 19:35:13 +10:30
Jeff Atwood
183d3f9460 Merge pull request #83 from qequ/main
Added python version of Slots
2021-02-23 20:55:53 -08:00
Jeff Atwood
9205c42ac6 Merge pull request #84 from journich/main
Java version of the Bug Basic game
2021-02-23 20:55:37 -08:00
Kyle Hale
a941b8ed93 Cleaned up TODOs 2021-02-23 20:23:19 -06:00
journich
0f4fb33b93 Fix gameover
Fix issue with gameOver code being executed in only one chain.
2021-02-24 12:16:47 +10:30
journich
ddbd44f340 Java version of the Bug Basic game 2021-02-24 11:48:12 +10:30
Alvaro Frias Garay
85b15abd8d Added history and porting comments 2021-02-23 20:03:44 -03:00
Alvaro Frias Garay
ee702e3244 Added input error handling 2021-02-23 19:00:37 -03:00
Alvaro Frias Garay
5400e4e309 Added main logic of slots 2021-02-23 18:40:07 -03:00
Jeff Atwood
2be7f9108e Merge pull request #81 from nanochess/main
Ported WAR, WEEKDAY, and WORD to Javascript
2021-02-23 12:42:21 -08:00
Jeff Atwood
4effcfceab Merge pull request #82 from palazzol/main
Added python version of AMAZING, with bug fix from BASIC version
2021-02-23 11:38:47 -08:00
Jeff Atwood
ec964f04bd Merge pull request #80 from jessemcdowell/10-csharp
Blackjack (10) in C#
2021-02-23 11:33:05 -08:00