Skip to content

Commit

Permalink
add Porting Notes to readme.md for each game
Browse files Browse the repository at this point in the history
  • Loading branch information
coding-horror committed Mar 19, 2022
1 parent ef60738 commit f40a1fc
Show file tree
Hide file tree
Showing 97 changed files with 408 additions and 44 deletions.
5 changes: 5 additions & 0 deletions 01_Acey_Ducey/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ As published in Basic Computer Games (1978):
Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html


#### Porting Notes

(please note any difficulties or challenges in porting here)

#### External Links
- Common Lisp: https://github.com/koalahedron/lisp-computer-games/blob/master/01%20Acey%20Ducey/common-lisp/acey-deucy.lisp
- PowerShell: https://github.com/eweilnau/basic-computer-games-powershell/blob/main/AceyDucey.ps1
2 changes: 1 addition & 1 deletion 02_Amazing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ As published in Basic Computer Games (1978):
Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

---
#### Porting Notes

**2022-01-04:** patched original source in [#400](https://github.com/coding-horror/basic-computer-games/pull/400) to fix a minor bug where a generated maze may be missing an exit, particularly at small maze sizes.
4 changes: 4 additions & 0 deletions 03_Animal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ As published in Basic Computer Games (1978)

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
5 changes: 5 additions & 0 deletions 04_Awari/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ As published in Basic Computer Games (1978)

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)

4 changes: 4 additions & 0 deletions 05_Bagels/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ As published in Basic Computer Games (1978)

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
5 changes: 5 additions & 0 deletions 06_Banner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ As published in Basic Computer Games (1978)

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)

5 changes: 5 additions & 0 deletions 07_Basketball/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ As published in Basic Computer Games (1978)

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)

5 changes: 5 additions & 0 deletions 08_Batnum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)

4 changes: 4 additions & 0 deletions 09_Battle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ As published in Basic Computer Games (1978)

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 10_Blackjack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 11_Bombardment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 12_Bombs_Away/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 13_Bounce/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 14_Bowling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 15_Boxing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 16_Bug/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 17_Bullfight/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
5 changes: 5 additions & 0 deletions 18_Bullseye/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)

4 changes: 4 additions & 0 deletions 19_Bunny/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 20_Buzzword/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 21_Calendar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 22_Change/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
3 changes: 2 additions & 1 deletion 23_Checkers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ The file `checkers.annotated.bas` contains an indented and annotated
version of the source code. This is no longer valid BASIC code but
should be more readable.

## Known Issues In the Original BASIC Code
#### Porting Notes

- If the computer moves a checker to the bottom row, it promotes, but
leaves the original checker in place. (See line 1240)
- Human players may move non-kings as if they were kings. (See lines 1590 to 1810)
Expand Down
4 changes: 4 additions & 0 deletions 24_Chemist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@ As published in Basic Computer Games (1978):
Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)

#### External Links
- C: https://github.com/ericfischer/basic-computer-games/blob/main/24%20Chemist/c/chemist.c
4 changes: 4 additions & 0 deletions 25_Chief/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 26_Chomp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 27_Civil_War/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 28_Combat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
5 changes: 3 additions & 2 deletions 29_Craps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ As published in Basic Computer Games (1978):
Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

### Comments on the BASIC code for re-implementers.
#### Porting Notes

15 LET R=0

`R` is a variable that tracks winnings and losings. Unlike other games that
start out with a lump sum of cash to spend this game assumes the user has as
much money as they want and we only track how much they lost or won.
Expand All @@ -31,6 +32,7 @@ much money as they want and we only track how much they lost or won.
24 LET X=(RND(0))
25 LET T =T+1
26 IF T<=Z THEN 24

This block of code does nothing other than try to scramble the random number
generator. Random number generation is not random, they are generated from the
previous generated number. Because of the slow speed of these systems back then,
Expand Down Expand Up @@ -89,7 +91,6 @@ the user input.
60 IF X=1 THEN 40
65 IF X=0 THEN 40


`F` is a variable that represents the users wager for this betting round.
`E` and `S` represent the two individual and random dice being rolled.
This code is actually wrong because it returns a value between 0 and 6.
Expand Down
4 changes: 4 additions & 0 deletions 30_Cube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 31_Depth_Charge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 32_Diamond/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 33_Dice/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 34_Digits/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 35_Even_Wins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 36_Flip_Flop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 37_Football/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 38_Fur_Trader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 39_Golf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 40_Gomoko/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 41_Guess/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 42_Gunner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
5 changes: 5 additions & 0 deletions 43_Hammurabi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ As published in Basic Computer Games (1978):
Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)


#### External Links
- C: https://github.com/beyonddream/hamurabi
- Rust: https://github.com/beyonddream/hamurabi.rs
4 changes: 4 additions & 0 deletions 44_Hangman/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
4 changes: 4 additions & 0 deletions 45_Hello/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ As published in Basic Computer Games (1978):

Downloaded from Vintage Basic at
http://www.vintage-basic.net/games.html

#### Porting Notes

(please note any difficulties or challenges in porting here)
Loading

0 comments on commit f40a1fc

Please sign in to comment.