Commit Graph

13 Commits

Author SHA1 Message Date
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
Jeff Atwood
f899e5584c add README.md to each language subfolder 2021-02-15 14:22:06 -08:00