Commit Graph

407 Commits

Author SHA1 Message Date
Swofty
0b0ffcebe2 Ported Number to Java 2021-03-02 13:36:06 +11:00
Jeff Atwood
03d07f7b20 Merge pull request #155 from qequ/main
Python port of Animal
2021-03-01 18:22:26 -08:00
Alvaro Frias Garay
0d8a8e9f35 Added history comment and porting notes 2021-03-01 20:39:40 -03:00
Jeff Atwood
d372181908 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
b662b52b99 Ported HURKLE, KINEMA, LETTER, LITQUIZ, LOVE, and MATHDICE to Javascript 2021-03-01 16:30:23 -06:00
Alvaro Frias Garay
fef1ed381f Merge branch 'main' of github.com:qequ/basic-computer-games into main 2021-03-01 19:25:35 -03:00
Alvaro Frias Garay
96304eecc6 Added initial message 2021-03-01 19:25:25 -03:00
Alvaro Frias Garay
c37c3c8807 Added List command and updated parse to recognize that operation 2021-03-01 19:25:25 -03:00
Alvaro Frias Garay
2c556fe3c7 Updated Node tree data structure 2021-03-01 19:25:25 -03:00
Alvaro Frias Garay
345213dabc Added main code of animal game
(not fully tested)
2021-03-01 19:25:25 -03:00
Alvaro Frias Garay
dab246d3f2 Added initial message 2021-03-01 19:18:24 -03:00
Jeff Atwood
cc970b368c Merge pull request #141 from tsmaster/port-orbit
Port ORBIT to Python
2021-03-01 14:15:53 -08:00
Alvaro Frias Garay
1e25d0e0c7 Added List command and updated parse to recognize that operation 2021-03-01 18:51:39 -03:00
Jeff Atwood
011a280ce4 Merge pull request #151 from marvin826/main
Initial work to port Salvo game 77 to python
2021-03-01 13:35:00 -08:00
marvin826
7ab0ea6725 Jupyter workbook for working out basic Salvo Python concepts 2021-03-01 14:24:51 -07:00
Jeff Atwood
30a64cc7c6 Merge pull request #149 from consultutah/main
Added sln & csproj files / also fixed prompt
2021-03-01 12:52:14 -08:00
Jeff Lewis
989fefc10d Fixed prompt msg 2021-03-01 13:39:18 -07:00
Jeff Lewis
86aa57d4fc Added csproj and sln 2021-03-01 13:37:39 -07:00
Alvaro Frias Garay
c647b0db19 Updated Node tree data structure 2021-03-01 16:53:09 -03:00
Alvaro Frias Garay
63ff80e1ea Added main code of animal game
(not fully tested)
2021-03-01 16:25:14 -03:00
Jeff Atwood
b02bff9db3 Merge pull request #142 from bwignall/38_pelt_access
Array access changes
2021-03-01 10:45:02 -08:00
Jeff Atwood
d58b40caa3 Merge pull request #144 from nanochess/main
Ported BLACKJACK to Javascript
2021-03-01 10:44:32 -08:00
Jeff Atwood
50363aa93d Merge pull request #143 from tsmaster/port-literature
Port LITQUIZ to Python
2021-03-01 10:39:58 -08:00
Jeff Atwood
113f8d68ca Merge pull request #147 from tsmaster/port-hexpawn
WIP Begin Porting HEXAPAWN to Python
2021-03-01 10:37:46 -08:00
Jeff Atwood
14e4ce0117 Merge pull request #145 from tsmaster/port-pizza
Port PIZZA to Python
2021-03-01 10:24:33 -08:00
Jeff Atwood
28a6cd38a4 Merge pull request #148 from jamiemccarthy/51-hurkle-ruby
Hurkle in Ruby
2021-03-01 10:23:37 -08:00
Jamie McCarthy
512c0e7e35 Simplify 2021-03-01 11:33:52 -06:00
Jamie McCarthy
304782a12e Modularize a bit, clean up strings a bit 2021-03-01 11:30:11 -06:00
Jamie McCarthy
755b05fa27 Add a Point class 2021-03-01 11:17:00 -06:00
Dave LeCompte
ee7e22c95f WIP Begin Porting HEXAPAWN to Python
So far, have printed out instructions and parsed player moves. Submitting pull request to let folks know I'm working on this.
2021-03-01 09:08:03 -08:00
Jamie McCarthy
2fb284bab8 Ruby names constants with UPPER_CASE by convention 2021-03-01 10:20:44 -06:00
Jamie McCarthy
b20d009fb6 Move a function around 2021-03-01 10:18:12 -06:00
Jamie McCarthy
8ecc1da494 Move more prints into functions 2021-03-01 10:17:47 -06:00
Jamie McCarthy
082b87d5bb print_introduction 2021-03-01 10:15:12 -06:00
Jamie McCarthy
fa1d6db1a2 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
f955984631 Tighten up direction-finding logic 2021-03-01 10:08:35 -06:00
Jamie McCarthy
6697bcea2e Add in the direction-finding logic 2021-03-01 10:06:08 -06:00
Jamie McCarthy
fc81ad458e 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
Dave LeCompte
4f8c0dfd2c Port PIZZA to Python
Refactored logic into functions. If you're the kind of person that likes to say "pizza pie", then you might also like saying "pizza.py".
2021-03-01 08:01:15 -08:00
nanochess
0a177d0f72 Ported BLACKJACK to Javascript 2021-03-01 09:54:41 -06:00
Dave LeCompte
1a4f39cc02 Port LITQUIZ to Python
pulled questions and answers out into a question class to reduce repetition in the logic.
2021-03-01 07:05:13 -08:00
Jamie McCarthy
f4a7b49656 Start hurkle.rb with the original BASIC code 2021-03-01 08:56:21 -06:00
Brian Wignall
ccfbe9b1ea Array access changes 2021-03-01 07:19:02 -05:00
Dave LeCompte
03e65d267a Port ORBIT to Python
Pretty straightforward port - a huge portion of the code is drawing ASCII art of Earth.

I also took the liberty of deleting unnecessary work to get the argument to math.cos to lie between -180 and 180 degrees. Maybe that was important back in the day.
2021-02-28 21:33:52 -08:00
Jeff Atwood
9be44dead5 Merge pull request #140 from tsmaster/port-poetry
Port POETRY to Python
2021-02-28 20:48:54 -08:00
Dave LeCompte
aa9ff64567 Port POETRY to Python
So much spaghetti in the source BASIC! I've tried to make things more modular, but it's still a complicated machine. There's room for somebody else to refactor this to be cleaner, if they feel like it.
2021-02-28 20:46:23 -08:00
Jeff Atwood
ac5ecd1e3e Merge pull request #139 from journich/main
Java version of Love game
2021-02-28 20:44:42 -08:00
Jeff Atwood
3dbfe02576 Merge pull request #138 from nanochess/main
Ported BATTLE to Javascript
2021-02-28 20:44:27 -08:00
journich
036611df8b Java version of Love game 2021-03-01 14:58:47 +10:30
nanochess
7c5466ecdd Ported BATTLE to Javascript 2021-02-28 22:19:46 -06:00