Commit Graph

30 Commits

Author SHA1 Message Date
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
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
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