Commit Graph

49 Commits

Author SHA1 Message Date
Martin Thoma
2316195b30 Python: Add type annotations 2022-03-20 19:16:39 +01:00
Jeff Atwood
473e20c181 add Porting Notes to readme.md for each game 2022-03-18 19:50:22 -07:00
Martin Thoma
dbed6ba98e Clean Code: Python
Fix issues found by flake8-bugbear:

* Unused loop variables
* assert statements in non-test code
* mixing test code with production code
* mark one excessive test which takes ~10min to run
  as 'slow'
2022-03-18 14:59:08 +01:00
Jeff Atwood
3cfb409b36 Merge pull request #633 from mojoaxel/js-terminal-style
Add "nice" terminal style stylesheet for javascript html
2022-03-15 23:50:18 -05:00
Jeff Atwood
3c76ebe024 add 00_Alternate_Langage folder and move alternate ports there 2022-03-15 20:49:07 -07:00
Alexander Wunschik
53ebb09c1c add terminal-stylesheet for javascript html 2022-03-13 11:23:05 +01:00
Martin Thoma
93e1a78363 MAINT: Apply pre-commit
Remove byte-order-marker pre-commit check as there would be
many adjustments necessary
2022-03-05 09:29:23 +01:00
Stefan Waldmann
def0398956 Edit README.md 2022-01-29 17:05:10 +01:00
Stefan Waldmann
d90db646b1 Edit README.md 2022-01-29 16:56:53 +01:00
Stefan Waldmann
3f5b24e103 Merge remote-tracking branch 'upstream/main' into main 2022-01-29 16:51:24 +01:00
Stefan Waldmann
9476fcd5f4 Add Javadoc 2022-01-29 16:30:42 +01:00
Stefan Waldmann
ab4f381140 Prompt for ENTER to continue 2022-01-28 08:01:21 +01:00
Stefan Waldmann
ad21c7e140 Add command line arg to stop after each generation 2022-01-28 07:57:44 +01:00
Stefan Waldmann
c685aa9bda Evaluate invalid state 2022-01-19 07:20:50 +01:00
Nezumi Ronin
241c1f1959 Create life.pl 2022-01-18 10:56:57 -06:00
Stefan Waldmann
812f80b833 Print generation header formatted correctly 2022-01-17 19:08:19 +01:00
Stefan Waldmann
09d72c1265 Refactor, add Javadoc 2022-01-17 18:48:29 +01:00
Stefan Waldmann
5d9df6c53a Add Java implementation 2022-01-16 18:10:28 +01:00
Zev Spitz
8a2f251c40 Add sln and csroj/vbproj files where missing 2022-01-16 08:17:31 +02:00
Dyego Maas
ee2d063b21 Removed extra line printed after each generation, to better match the original's visuals. 2022-01-12 20:23:17 -03:00
Dyego Maas
e43c43f0ca Adjusted message of "invalid" generations, matching the original. 2022-01-12 20:22:26 -03:00
Dyego Maas
254216d498 Refactoring. 2022-01-12 20:21:30 -03:00
Dyego Maas
c5db8cd501 Refactoring. 2022-01-12 20:08:53 -03:00
Dyego Maas
45fa39c02e Compensated for the displacement that was occurring in the y axis by adjusting the "middle" to a valid value when working with zero based indexes. 2022-01-12 20:07:52 -03:00
Dyego Maas
649eab2859 Temporary compensation for error calculating (possibly related to rounding) that caused misplacement of the initial pattern by 2 in the y axis. 2022-01-12 19:50:32 -03:00
Dyego Maas
51783355fb Adjusting indexes. 2022-01-12 19:49:30 -03:00
Dyego Maas
f36e0d23ca Fix various indexing problems that caused drifting. Now, the application behaves exactly like the original, even in "invalid" generations. 2022-01-12 16:09:10 -03:00
Dyego Maas
150b03a959 Fix the initialization of the matrix, which was displacing the pattern in the initial position onto the matrix, which caused the evolution of the simulation to variate in relation with the original game in Basic when once the cells reached the boarder (invalid cases). 2022-01-12 16:07:35 -03:00
Dyego Maas
ee22da5615 Fixes cropping that would happen when using an dot (.) in the beggining of the text. 2022-01-12 16:04:57 -03:00
Dyego Maas
23558cf68f Fixed pattern reading when inputing DONE, which would lead to incorrect sizing of the pattern transcribed to the matrix and caused drifting in relation to the original. 2022-01-12 16:04:14 -03:00
Dyego Maas
1123d12e07 Adding instructions on how to enter patterns, and also some examples. 2022-01-12 10:50:36 -03:00
Dyego Maas
52e2eccbf0 Adding instructions on how to run the example. 2022-01-12 10:09:31 -03:00
Dyego Maas
b59d4fd814 Performance optimization, reducing the amount of writes to the console necessary to output each iteration's matrix. 2022-01-12 09:50:35 -03:00
Dyego Maas
247ae92e59 Documented the --wait argument. 2022-01-11 20:58:07 -03:00
Dyego Maas
17cd02a82e Adding comment about the port. 2022-01-11 20:51:48 -03:00
Dyego Maas
263a43551d Moving pause location to the end of iteration. 2022-01-11 20:47:08 -03:00
Dyego Maas
3e0cef49c3 Refactoring and documenting the solution. 2022-01-11 20:46:39 -03:00
Dyego Maas
699286b88d Added argument to configure a pause in between iterations, allowing the player to enjoy watching the evolution of the game of life. 2022-01-11 20:46:07 -03:00
Dyego Maas
4bef616709 Refactoring, plus adding real user input again. 2022-01-11 20:45:34 -03:00
Dyego Maas
def3ff7284 Added enum Cell to enhance clarity. 2022-01-11 20:45:00 -03:00
Dyego Maas
b1c4193ce6 Further refactoring, naming procedures. 2022-01-11 20:44:13 -03:00
Dyego Maas
8dd6bc68ab Some initial refactorings. 2022-01-11 20:43:44 -03:00
Dyego Maas
275e2c7447 Eliminated StackOverflow bug. 2022-01-11 20:43:14 -03:00
Dyego Maas
10b55eb3ae Got it working. 2022-01-11 20:42:40 -03:00
Dyego Maas
5a30311565 Not working yet. 2022-01-11 20:41:28 -03:00
Dyego Maas
70a3364e46 Another step. 2022-01-11 20:40:50 -03:00
Dyego Maas
6a1e497608 Just starting out. 2022-01-11 20:40:05 -03:00
LukasMurdock
8e59a0c419 add 17-96 2022-01-03 02:13:21 -05:00
Chris Reuter
5f664bc71d Removed spaces from top-level directory names.
Spaces tend to cause annoyances in a Unix-style shell environment.
This change fixes that.
2021-11-21 18:30:21 -05:00