Files
basic-computer-games/49_Hockey/python
2022-04-18 22:34:23 +02:00
..
2022-04-18 22:34:23 +02:00
2022-04-18 22:27:28 +02:00

Original source downloaded from Vintage Basic

Conversion to Python

Porting Notes

Variables:

  • C: Do you want instructions?
  • A$(7): Team name + player names (6 players)
  • B$(7): Team name + player names (6 players)
  • T6: Minutes per game
  • R: REFEREE

Functions:

  • REM: A line comment
  • INT(2*RND(X))+1: X is constantly 1. That means that this expression is simpler expressed as randint(1,2)

Looking at the JS implementation:

  • as[7] / bs[7]: The team name
  • ha[8] : Score of team B
  • ha[9] : Score of team A