Commit Graph

2468 Commits

Author SHA1 Message Date
Jon Fetter-Degges 5e3e7d60ae couple more comment changes 2022-10-11 22:18:32 -04:00
Jon Fetter-Degges 7b929ecbb1 Small fixes and use min/max 2022-10-11 22:03:57 -04:00
Jon Fetter-Degges 5214f2a681 One more implementation note 2022-10-11 21:49:40 -04:00
Jon Fetter-Degges 14e59ac5fe Improve printing, make output closer to original
Implemented Display for CellState, and tweaked outputs to match the
BASIC implementation.

Also fixed some more comments.
2022-10-11 21:37:05 -04:00
Jon Fetter-Degges 6e46aba249 README file for the Rust port 2022-10-11 21:34:40 -04:00
Jon Fetter-Degges 15724219b5 Input bounds checking, refactor and cleanup
get_pattern now checks the size of the input to prevent out of bounds
writes., and converts String to Vec<char> immediately.

Refactors: changed function names, ran rust-fmt, improved some comments
2022-10-11 20:29:40 -04:00
Jon Fetter-Degges a068af4bc9 Do bounds update in finish_cell_transitions
Merged the functionality of update_bounds into finish_cell_transitions,
eliminating a loop.
2022-10-11 16:26:28 -04:00
Jon Fetter-Degges 0d2b7c6559 Initial commit of Life in Rust 2022-10-11 12:43:22 -04:00
Jeff Atwood c7ed271201 Merge pull request #815 from AnthonyMichaelTDM/main
Rust implementation of 24_Chemist
2022-10-04 18:09:16 -07:00
AnthonyMichaelTDM d20a5781b6 Rust implementation of 24_Chemist 2022-10-04 17:42:04 -07:00
Jeff Atwood 72dd9f43cf Merge pull request #813 from ugurkupeli/92-Trap-rust
92 Trap Rust
2022-10-04 16:27:59 -07:00
Jeff Atwood 2bfb08564e Merge pull request #811 from aconconi/33-lua-port
33_Dice Lua port.
2022-10-04 16:27:28 -07:00
Uğur Küpeli 06f2e8cc7f Rust implementation 2022-10-04 18:31:45 +03:00
Uğur Küpeli c18a1004a5 Rust implementation of 92 Trap 2022-10-04 18:30:30 +03:00
aconconi 831e972d44 added NL at end of file 2022-10-02 18:04:10 +02:00
aconconi a80534b13e Lua port created 2022-10-02 17:59:26 +02:00
Jeff Atwood c1893239da Merge pull request #810 from recanman/main
Added Lua implementation of 63_Name
2022-09-30 11:13:43 -07:00
recanman b25f2207e1 Create name.lua 2022-09-28 10:28:31 -07:00
Jeff Atwood a49d610786 Merge pull request #803 from AnthonyMichaelTDM/main
Rust implementation of 92_train
2022-09-26 01:26:40 -07:00
Jeff Atwood 82953f2bdd Merge pull request #804 from drewjcooper/csharp-56-life-for-two
C# 56 life for two
2022-09-26 01:26:30 -07:00
Jeff Atwood 15b7759442 Merge pull request #807 from recanman/main
Added Lua implementation of 45_Hello
2022-09-26 01:26:22 -07:00
Jeff Atwood 5eebddc8b9 Merge pull request #808 from AnthonyMichaelTDM/patch-1
Update life_for_two.py
2022-09-26 01:26:04 -07:00
Anthony Rubick faf410a500 fixed unused variable error on line 41 2022-09-22 15:20:14 -07:00
Anthony Rubick b2b0f03339 fix 'missing whitespace around arithmetic operators' error 2022-09-22 15:18:13 -07:00
Anthony Rubick 294c2fafa3 Update life_for_two.py
fixes syntax errors that were causing other PRs to fail python checks.
2022-09-22 15:14:34 -07:00
Anthony Rubick db330787db Merge pull request #1 from coding-horror/main
pull
2022-09-22 14:57:03 -07:00
recanman 218130f858 Added Lua implementation of 45_Hello 2022-09-16 21:28:13 -07:00
Jeff Atwood 399a2a7e81 Merge pull request #802 from Vaxick/main
Fix qubit.py
2022-09-16 17:23:42 -07:00
Andrew Cooper ab574167aa Merge branch 'coding-horror:main' into csharp-56-life-for-two 2022-09-13 08:37:38 +10:00
Andrew Cooper 307c5e8ee7 Add coordinates enumerator 2022-09-13 08:17:26 +10:00
Andrew Cooper a9ec4e3eb1 Add Life as a sequence of Gneerations 2022-09-13 07:56:27 +10:00
Andrew Cooper db186bb86e Add Generation encapsulation 2022-09-13 07:21:53 +10:00
Andrew Cooper 3b208a1b92 Add Piece encapsulation 2022-09-12 07:26:09 +10:00
Anthony Rubick 20d6b97d6e Merge branch 'coding-horror:main' into main 2022-09-08 19:29:42 -07:00
AnthonyMichaelTDM 58fd90f543 rust implementation of 92_Trap 2022-09-08 19:29:01 -07:00
Andrew Cooper 8994d9b03c Move neighbour count to generation calculation 2022-09-09 07:57:51 +10:00
Andrew Cooper 3042247e06 Create Game class 2022-09-08 17:02:17 +10:00
Andrew Cooper 5e998088f9 Move player counts into Board 2022-09-08 08:11:08 +10:00
Andrew Cooper c1d43a742a Simplify player input 2022-09-08 07:53:02 +10:00
Andrew Cooper 96a0d7bee5 Move generation calculation to Board 2022-09-07 21:37:28 +10:00
Andrew Cooper 2ccbdcc98d Move display to Board 2022-09-07 20:41:54 +10:00
Andrei Ursu 6ef7b1fc05 Fix life_for_two.py compile error.
It seems like it will always give a build error even if you don't touch this specific file, so I initialized everything at the start.
2022-09-06 01:40:49 +02:00
Andrei Ursu 6e1d38918a Fix qubit.py
Changed the following lines:
284: typo of function call.
316: typo of function call.
2022-09-05 23:52:21 +02:00
Jeff Atwood e93a709930 Merge pull request #791 from ToulisDev/main
Add c++ for Acey Ducey
2022-09-03 10:31:11 -07:00
Jeff Atwood 36d850ecb8 Merge pull request #793 from AnthonyMichaelTDM/main
Rust implementation of 91_Train
2022-09-03 10:30:47 -07:00
Jeff Atwood 8742bb404e Merge pull request #792 from Vaxick/main
Chief, Cube and Dice in C
2022-09-03 10:30:04 -07:00
Jeff Atwood f5b8b463d6 Merge pull request #794 from posguy99/superstartrek_python_fix
add try/except to computer prompt, invalid input should not crash game
2022-09-03 10:06:49 -07:00
Marc Wilson 007b38751d add try/except to computer prompt, invalid input should not crash game 2022-09-03 09:38:19 -07:00
Andrew Cooper 28736b9dbe Make cell values binary 2022-09-02 08:40:46 +10:00
Andrew Cooper b156755ee0 Move neighbour calculation 2022-09-02 07:54:18 +10:00