Commit Graph

1338 Commits

Author SHA1 Message Date
Paul Holt
46baddd24c change headings 2022-01-05 01:33:41 +11:00
Paul Holt
bd0e704914 Update README.md 2022-01-05 01:30:39 +11:00
Paul Holt
ec6dfd4bc3 Bug fix - restoring game did not enter countrymen
Refactor - Added validatedInput function
2022-01-05 01:24:08 +11:00
Martin VanWinkle III
581a3f1441 cleanup 2022-01-04 08:36:37 -05:00
Paul Holt
41c3c617f5 Remove exceptions used for standard
flow-control - this is an antipattern.
2022-01-05 00:13:52 +11:00
Bastiaan Veelo
ec43a4fc94 D version of Acey-Ducey. 2022-01-04 11:52:09 +01:00
Alex Kapranoff
5409fa3daf chmod +x on the Perl script, as is done in #307 2022-01-04 00:51:54 -08:00
Alex Kapranoff
6f599f12f6 Fix the bug identified in #400 2022-01-04 00:47:34 -08:00
Alex Kapranoff
3b4b14427c 02_Amazing in Perl 2022-01-04 00:38:57 -08:00
RibTips
818ac9ec88 Merge pull request #1 from ribtips/ribtips-evenwins-logic-patches
Logic fixes and patches for evenwins in perl and python
2022-01-04 01:39:30 -05:00
RibTips
41183198a8 added logic/intelligence into the AI
modified the logic from how the computer was making its selections.  Original code had a simple random number, this incorporates the original logic from the BASIC game.
2022-01-04 01:37:57 -05:00
RibTips
55b3c0d4e7 Add files via upload 2022-01-04 01:33:11 -05:00
Marc Durdin
d82a637152 chore(amazing): add note to README.md for #400 2022-01-04 16:47:32 +11:00
Jeff Atwood
4263d526a6 Merge pull request #402 from ribtips/main
Perl version of 35_evenwins
2022-01-03 21:41:43 -08:00
RibTips
f98c8af9f8 Perl version of 35_evenwins 2022-01-04 00:21:38 -05:00
Jeff Atwood
4b56e00c83 Merge pull request #400 from mcdurdin/patch-1
fix(amazing): guarantee exit on bottom row of maze
2022-01-03 19:10:08 -08:00
Jeff Atwood
c654a0749b Merge pull request #371 from AlaaSarhan/main
13. Bounce in Ruby
2022-01-03 19:09:15 -08:00
Jeff Atwood
8bc12a851d Merge pull request #399 from a2wd/main
Added bombardment in c#
2022-01-03 19:07:48 -08:00
Jeff Atwood
0d895dff8e Merge pull request #398 from patimen/main
Add Kotlin for Synonym
2022-01-03 19:07:28 -08:00
Jeff Atwood
47d65e2472 Merge pull request #396 from pcholt/main
Kotlin King
2022-01-03 18:17:18 -08:00
Alaa Sarhan
321205cc77 minor changes 2022-01-04 02:49:50 +01:00
Marc Durdin
e8849566ba fix(amazing): guarantee exit on bottom row of maze
This issue only tends to show up on very small mazes (e.g. 2x2, 3x3). It is possible for the algorithm to never generate an exit to the maze. While the algorithm guarantees with the `Z` variable that only one exit will be generated, it does not test for the situation where we just happen to never get the right random value to open an exit on the bottom row.

The simplest resolution is just to check for this before rendering the final result (i.e. `IF Z=0`), and add an exit to a random cell on the bottom row.
2022-01-04 12:35:51 +11:00
a2wd
2c1dea4de7 Added bombardment in c# 2022-01-04 01:57:36 +01:00
John Long
916fa6f252 And now RANDOM is redundant 2022-01-03 16:48:49 -08:00
John Long
1520a8f225 Affirmation more accurate than Answer 2022-01-03 16:47:47 -08:00
John Long
8be28cd39a A little cleaner implementation 2022-01-03 16:45:26 -08:00
John Long
1e9c8008d1 Add Kotlin for Synonym
This is so much cleaner than the Java :).
2022-01-03 16:37:04 -08:00
Paul Holt
4a2217f4be Update README.md 2022-01-04 10:41:42 +11:00
Paul Holt
cc7735aba3 Merge branch 'coding-horror:main' into main 2022-01-04 10:15:39 +11:00
Paul Holt
2d994033c5 update docs 2022-01-04 10:14:09 +11:00
Paul Holt
d32c56800a initial kotlin implementation of "King" 2022-01-04 10:13:48 +11:00
Jeff Atwood
2b9f3959d5 Merge pull request #391 from ribtips/main
Perl version of game 26 Chomp
2022-01-03 14:59:39 -08:00
Jeff Atwood
ad1ec8f205 Merge pull request #393 from trwyant/73_Reverse_ported_by_trw
Ported 73_Reverse to Perl.
2022-01-03 14:55:04 -08:00
Tom Wyant
d10e80e2c0 Ported 73_Reverse to Perl.
In a language with list assignments, array slices, and a reverse()
built-in, the reversal can be done in one statement.
2022-01-03 17:12:34 -05:00
RibTips
ec189883f9 Perl version of Chomp 2022-01-03 15:59:14 -05:00
Jeff Atwood
e11291971d Merge pull request #390 from trwyant/03_Animals_ported_by_trw
Port 03_Animal to Perl.
2022-01-03 12:17:52 -08:00
Tom Wyant
d77d3ee168 Port 03_Animal to Perl.
Replaed array-based simulation of binary tree with hash-based simulation
of binary tree.
2022-01-03 15:14:45 -05:00
Jeff Atwood
7dbce212d1 Merge pull request #387 from ersen0/23matches-perl
Add Perl version of 93_23Matches
2022-01-03 11:48:08 -08:00
Oğuz Ersen
26492ed257 Add Perl version of 93_23Matches 2022-01-03 19:39:53 +00:00
Jeff Atwood
6961f4eb50 Merge pull request #386 from daves561/bombs-away-csharp
Bombs Away in C#
2022-01-03 10:35:01 -08:00
Dave Shapiro
fd7adde990 Added Bombs Away in C#. This is a Visual Studio 2022 solution and uses the latest language features like file-scoped namespaces. 2022-01-03 11:30:55 -07:00
Jeff Atwood
56957da17d Merge pull request #384 from baka0815/pascal_randomize
AceyDucey/pascal: Move Randomize()
2022-01-03 10:30:25 -08:00
Jeff Atwood
0bf55b3138 Merge pull request #385 from daves561/fix-readme-typo
Fix typo in Bombs Away README.
2022-01-03 10:27:38 -08:00
Dave Shapiro
f57c27f1ea Fix typo in Bombs Away README. 2022-01-03 11:21:08 -07:00
baka0815
6977afdef0 AceyDucey/pascal: Move Randomize()
Randomize() should be called only once and as soon as possible.
2022-01-03 18:24:09 +01:00
Jeff Atwood
5ee452189a Merge pull request #373 from tjd1234/35.evenwins.python
added evenwins.py
2022-01-03 09:13:44 -08:00
Jeff Atwood
ca3b55d00e Merge pull request #370 from cmaitchison/rock-scissors-paper-ruby
Add Ruby implementation of Rock Scissors Paper
2022-01-03 09:12:22 -08:00
Jeff Atwood
9783a3e8eb Merge pull request #374 from patimen/main
Add Kotlin to War
2022-01-03 09:10:58 -08:00
Jeff Atwood
60417dfe41 Merge pull request #382 from Luminoso-256/main
add C# port of 21_calendar
2022-01-03 07:21:45 -08:00
Jeff Atwood
245056d9d4 Merge pull request #379 from marijnz0r/main
Add csharp version of 40_Gunner
2022-01-03 07:20:51 -08:00