Commit Graph

28 Commits

Author SHA1 Message Date
Martin Thoma e64fb6795c 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 2ac2819151 Removed extra line printed after each generation, to better match the original's visuals. 2022-01-12 20:23:17 -03:00
Dyego Maas b93cc409e2 Adjusted message of "invalid" generations, matching the original. 2022-01-12 20:22:26 -03:00
Dyego Maas d52981de73 Refactoring. 2022-01-12 20:21:30 -03:00
Dyego Maas f70b6d42dd Refactoring. 2022-01-12 20:08:53 -03:00
Dyego Maas 7a7d92ce24 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 5731a4df08 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 fd8c02371a Adjusting indexes. 2022-01-12 19:49:30 -03:00
Dyego Maas 6a3f0b3259 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 f25adca07a 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 73665d8b09 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 159aa46e21 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 f3d63355df Adding instructions on how to run the example. 2022-01-12 10:09:31 -03:00
Dyego Maas 337e7976d1 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 8c02ea39d2 Documented the --wait argument. 2022-01-11 20:58:07 -03:00
Dyego Maas 985e1886ac Adding comment about the port. 2022-01-11 20:51:48 -03:00
Dyego Maas c7c3d68a2e Moving pause location to the end of iteration. 2022-01-11 20:47:08 -03:00
Dyego Maas 3ffd2fdc52 Refactoring and documenting the solution. 2022-01-11 20:46:39 -03:00
Dyego Maas cd478a4a94 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 4870a14909 Refactoring, plus adding real user input again. 2022-01-11 20:45:34 -03:00
Dyego Maas 778af346d7 Added enum Cell to enhance clarity. 2022-01-11 20:45:00 -03:00
Dyego Maas e53b9d9cf1 Further refactoring, naming procedures. 2022-01-11 20:44:13 -03:00
Dyego Maas d9ab235585 Some initial refactorings. 2022-01-11 20:43:44 -03:00
Dyego Maas 44b1ada7d4 Eliminated StackOverflow bug. 2022-01-11 20:43:14 -03:00
Dyego Maas be5e35f7e0 Got it working. 2022-01-11 20:42:40 -03:00
Dyego Maas 53d2943f93 Not working yet. 2022-01-11 20:41:28 -03:00
Dyego Maas ade38d6969 Another step. 2022-01-11 20:40:50 -03:00
Dyego Maas 1c1276778b Just starting out. 2022-01-11 20:40:05 -03:00