Commit Graph

34 Commits

Author SHA1 Message Date
Jeff Atwood
e3f4ad6889 Merge pull request #152 from nanochess/main
Ported HURKLE, KINEMA, LETTER, LITQUIZ, LOVE, and MATHDICE to Javascript
2021-03-01 14:53:16 -08:00
nanochess
8727dfff29 Ported HURKLE, KINEMA, LETTER, LITQUIZ, LOVE, and MATHDICE to Javascript 2021-03-01 16:30:23 -06:00
Jamie McCarthy
bd8c2dac48 Simplify 2021-03-01 11:33:52 -06:00
Jamie McCarthy
31d048e3f9 Modularize a bit, clean up strings a bit 2021-03-01 11:30:11 -06:00
Jamie McCarthy
6980dfda94 Add a Point class 2021-03-01 11:17:00 -06:00
Jamie McCarthy
7ab5cfd140 Ruby names constants with UPPER_CASE by convention 2021-03-01 10:20:44 -06:00
Jamie McCarthy
9d41dd2c31 Move a function around 2021-03-01 10:18:12 -06:00
Jamie McCarthy
f9387636a7 Move more prints into functions 2021-03-01 10:17:47 -06:00
Jamie McCarthy
b7e044c9c2 print_introduction 2021-03-01 10:15:12 -06:00
Jamie McCarthy
cc24398bdb Correct hurkle's gender
Hurkles can give birth parthenogenetically, but are nevertheless -- or
at least this one is -- nongendered. No male hurkles are known to exist
2021-03-01 10:09:39 -06:00
Jamie McCarthy
5826a0ce82 Tighten up direction-finding logic 2021-03-01 10:08:35 -06:00
Jamie McCarthy
c17ea838d3 Add in the direction-finding logic 2021-03-01 10:06:08 -06:00
Jamie McCarthy
b4254488bd Line-by-line-as-literally-as-possible conversion from BASIC to Ruby
Excluding the direction-finding logic.

Ruby lacks a GOTO or even a way to "break" out of two loops instead of
one, necessitating the use of variables and subroutines that the
original program lacked.
2021-03-01 10:05:56 -06:00
Jamie McCarthy
880fac2e3f Start hurkle.rb with the original BASIC code 2021-03-01 08:56:21 -06:00
Sankarsan Kampa
1d4b0d24e3 hurkle: add python port
Signed-off-by: Sankarsan Kampa <19631364+iamtraction@users.noreply.github.com>
2021-03-01 08:32:43 +05:30
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
18963ea719 add pascal and perl folders for all programs 2021-02-27 13:33:14 -08:00
journich
3f2b810ceb Removed debugging output showing the location of the Hurkle. 2021-02-23 08:49:33 +10:30
Tim
87625f0e8e cleanup 2021-02-22 09:37:34 +10:30
Tim
c9dd043c3d cleanup 2021-02-22 09:24:49 +10:30
Tim
728078c519 cleanup 2021-02-22 09:20:13 +10:30
Tim
7ebe0bb3eb Java version of Hurkle 2021-02-18 19:56:44 +10:30
Jeff Atwood
f899e5584c add README.md to each language subfolder 2021-02-15 14:22:06 -08:00
Jeff Atwood
54890a460b add all BASIC source files and folders 2021-02-09 19:36:03 -08:00