Commit Graph

276 Commits

Author SHA1 Message Date
Dave LeCompte
22c791d8d1 Port AWARI to Python
I attempted to do a faithful port of the logic for the most part. In particular, there's a clever base-6 encoding of move history that allows games to be stored as integers in a "losing book" array, which allows the AI to become stronger over time. I did not change this logic, as I felt that the cleverness of this solution is worth observing. I endeavored to make every variable clearer, and use functions to help make program flow easier to understand.

I did make one small change to the logic, which I also documented clearly, having to do with evaluating very large moves. The code, as originally published, looks like a typo to me, but with BASIC, it's hard to be certain.

Also, I'm bad at this game; the computer beats me almost always.
2021-02-28 15:12:47 -08:00
Jeff Atwood
f53e44d33b Merge pull request #108 from tsmaster/port-letter
Ported LETTER to Python
2021-02-27 18:40:31 -08:00
Dave LeCompte
632d14e128 Ported LETTER to Python
pretty straightforward port of the BASIC code to Python. Added a few functions for clarity. Removed CHR$(7) sounding of the bell, which is likely unsupported, and likely annoying.

Also corrected a mis-scanned "Let's Plan Again" message in the .BAS file, to both make more sense and also agree with the 2nd edition printed book.
2021-02-27 18:08:08 -08:00
Jeff Atwood
561fa162d7 Merge pull request #107 from journich/main
Java versions of Slots and Synonym
2021-02-27 17:47:47 -08:00
journich
70b5a44fba Java version of Synonym 2021-02-28 12:10:10 +10:30
journich
165b0f5cff Java versions of Slots and Synonym 2021-02-28 12:04:20 +10:30
Jeff Atwood
299dc7f646 Merge pull request #105 from tsmaster/port-diamond
Ported DIAMOND to Python
2021-02-27 17:29:53 -08:00
Jeff Atwood
dfc1727a45 Merge pull request #106 from gcarreno/move-weekday-to-proper-folder
Moving weekday.py to python/weekday.py
2021-02-27 17:29:44 -08:00
Gustavo Carreno
9ed14228f0 Moving weekday.py to python/weekday.py 2021-02-28 01:26:55 +00:00
journich
56f2770d74 Revert "Java version of Slots"
This reverts commit 3a902ffd64.
2021-02-28 11:55:35 +10:30
Dave LeCompte
c472ebb5c8 Ported DIAMOND to Python
added more descriptive variable names
2021-02-27 17:19:21 -08:00
Jeff Atwood
6cb57a3314 Merge pull request #104 from PeterQuinn925/main
Port of Hamurabi to Python
2021-02-27 17:04:27 -08:00
Jeff Atwood
f6b8e0df5f Merge pull request #103 from tsmaster/port-name
Port name
2021-02-27 17:04:11 -08:00
Jeff Atwood
18a4bb3ad1 Merge pull request #102 from gcarreno/pascal-acey-ducey
Pascal port of Acey Ducey
2021-02-27 17:03:56 -08:00
Jeff Atwood
ff9543ec0e Merge pull request #100 from tsmaster/main
Ported Weekday to Python
2021-02-27 17:03:27 -08:00
Jeff Atwood
d02a5ea448 Merge pull request #98 from djaychela/main
Added python version of MATHDICE
2021-02-27 17:03:02 -08:00
Jeff Atwood
c362cc9e8a Merge pull request #96 from nanochess/main
Ported BOWLING, BOXING and BUG to Javascript
2021-02-27 17:02:51 -08:00
journich
843ee97e9f Revert "Merge branch 'main' of https://github.com/journich/basic-computer-games into main"
This reverts commit 913bc1b91f, reversing
changes made to b77b7438cd.
2021-02-28 11:24:14 +10:30
journich
913bc1b91f Merge branch 'main' of https://github.com/journich/basic-computer-games into main 2021-02-28 11:20:20 +10:30
journich
b77b7438cd Java version of Synonym 2021-02-28 11:20:00 +10:30
Jeff Atwood
21a78d4aaf Merge pull request #97 from drewjcooper/84-super-star-trek-csharp
84 Super Star Trek CSharp
2021-02-27 16:18:31 -08:00
Jeff Atwood
a5d2cc64ba Merge pull request #99 from Jones-Adam/main
Batnum in C#
2021-02-27 16:18:00 -08:00
nanochess
f55fafbb33 Ported REVERSE to Javascript 2021-02-27 18:08:32 -06:00
nanochess
4e0559a193 Ported POETRY to Javascript 2021-02-27 17:39:48 -06:00
PeterQuinn925
c860f7a9f5 Port of Hamurabi to Python 2021-02-27 15:37:11 -08:00
Dave LeCompte
d788854809 Python version of NAME
uses Python operators for sorting and string manipulation
2021-02-27 14:45:24 -08:00
Gustavo Carreno
567885c405 Pascal: Adding credit 2021-02-27 22:28:42 +00:00
Gustavo Carreno
cb430380fe Pascal: Adding aceyducey 2021-02-27 22:24:47 +00:00
Tim Buchalka
cae335093b Delete .gitignore 2021-02-28 08:15:55 +10:30
journich
3a902ffd64 Java version of Slots 2021-02-28 08:14:17 +10:30
Jeff Atwood
18963ea719 add pascal and perl folders for all programs 2021-02-27 13:33:14 -08:00
Jeff Atwood
9504391a9d 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
6a0086d2dd Update README.md 2021-02-27 12:57:44 -08:00
Jeff Atwood
339c83da14 Update README.md 2021-02-27 12:57:24 -08:00
Darren Jones
ac5636b7a5 Add Python version of MUGWUMP 2021-02-27 19:52:39 +00:00
Dave LeCompte
004e73d414 Ported Weekday to Python
used the BASIC algorithms, mostly, made variable names more descriptive. Includes test harness.
2021-02-27 11:52:11 -08:00
Adam Jones
7ab928afb8 fix spacing 2021-02-27 13:36:04 +01:00
Adam Jones
1fc428c558 Merge branch 'main' of https://github.com/coding-horror/basic-computer-games 2021-02-27 13:30:25 +01:00
Darren Jones
8fdbf0470a Added python version of MATHDICE 2021-02-27 12:27:26 +00:00
Adam Jones
b68f5c97fa Initial version 2021-02-27 13:26:16 +01:00
Andrew Cooper
2d58a1db05 Merge branch 'main' into 84-super-star-trek-csharp 2021-02-27 17:43:17 +11:00
Andrew Cooper
4d1a9176ec Main game loop with Short Range Scan and Shield Control 2021-02-27 17:32:04 +11:00
Jeff Atwood
5475cbe795 Merge pull request #95 from journich/main
Java versions of Kinema,Letter and Literature Quiz
2021-02-26 20:13:12 -08:00
nanochess
5c82481fba Ported BULLFIGHT to Javascript 2021-02-26 22:10:52 -06:00
journich
98eaa2ff45 Java version of Literature Quiz 2021-02-26 16:55:10 +10:30
journich
6cb4c1064a Ensure initial title is shown before game starts 2021-02-26 16:38:21 +10:30
journich
1df4187777 Java version of Letter 2021-02-26 16:32:38 +10:30
nanochess
528b4d7a4a Ported BOWLING, BOXING and BUG to Javascript 2021-02-25 22:16:47 -06:00
journich
9bb8fa49fc Java version of Kinema 2021-02-26 13:42:39 +10:30
Jeff Atwood
88056a5236 Merge pull request #93 from nanochess/main
Ported BASKETBALL, BATNUM and CHOMP to Javascript
2021-02-25 14:08:39 -08:00