Commit Graph

2087 Commits

Author SHA1 Message Date
Jeff Atwood
3cb13d2564 Merge pull request #565 from ribtips/main
modified the AI logic to make it a bit more difficult to win based on tic-tac-toe game theory
2022-02-11 10:14:27 -08:00
ribtips
b59eba3534 modified the AI logic to make it a bit more difficult 2022-02-11 12:12:02 -05:00
Andrew Cooper
151144e9e2 Reorganise test files 2022-02-11 20:45:01 +11:00
Andrew Cooper
a7cedfbf7e Rework token building 2022-02-11 08:19:02 +11:00
Andrew Cooper
3b42ffd18d Add token reader 2022-02-10 22:40:12 +11:00
Dave Burke
a6cf574479 Add notes about insurance 2022-02-09 21:51:31 -06:00
Dave Burke
f65c2de058 Add comments and tasks 2022-02-09 21:40:27 -06:00
Dave Burke
2b2f9327f7 Implement play() and scoreHand() 2022-02-09 21:19:04 -06:00
Jeff Atwood
0d3dbcff87 Merge pull request #563 from stephancom/54-letter-ruby
54-Letter: ruby
2022-02-09 10:36:18 -08:00
stephan.com
72864de3a8 54-Letter: ruby 2022-02-08 21:49:00 -08:00
Jeff Atwood
aaa81dac83 Merge pull request #562 from stephancom/52-kinema-ruby
52-Kinema: ruby
2022-02-08 21:08:06 -08:00
stephan.com
ba9ca01206 52-Kinema: ruby 2022-02-08 21:06:43 -08:00
Jeff Atwood
0af6cd7a6b Merge pull request #561 from stephancom/cleanup-vestigal-folder
remove extra folder
2022-02-08 17:52:53 -08:00
stephan.com
f0c869037a remove extra folder
there appear to be two Russian Roulette folders in the repo, one with spaces and the other with dashes.  The one with spaces contains nothing but a perl implementation, which is identical to the one in `76_Russian_Roulette/perl/russianroulette.pl`
2022-02-08 17:13:08 -08:00
Jeff Atwood
b2f6d2d829 Merge pull request #560 from stephancom/06-banner-ruby
06-Banner: ruby
2022-02-08 09:10:18 -08:00
stephan.com
b36966b235 06-Banner: ruby 2022-02-08 04:19:36 -08:00
Dave Burke
0760f22494 Add example i/o test 2022-02-07 21:59:02 -06:00
Dave Burke
0b1f57ae4f Refactor to allow testing side effects
By externalizing the source of i/o and randomness for shuffling, we can
inject non-interactive and deterministic behavior during unit tests.
2022-02-07 21:59:02 -06:00
Jeff Atwood
389f42f34c Merge pull request #559 from stevebosman/94_War
94 war case insensitive input
2022-02-07 13:29:17 -08:00
Steve Bosman
0b89464f6a Merge branch 'coding-horror:main' into 94_War 2022-02-07 21:24:51 +00:00
Steve Bosman
5f3aadd2b3 94 War - allow case insensitive input 2022-02-07 21:24:07 +00:00
Jeff Atwood
c669343310 Merge pull request #558 from stephancom/94-war-ruby
94_war: ruby
2022-02-07 08:48:10 -08:00
Andrew Cooper
25c8dad512 Add input tokenization 2022-02-07 22:43:31 +11:00
stephan.com
00235289d0 94_war: ruby 2022-02-07 01:48:24 -08:00
Jeff Atwood
e99d67787e Merge pull request #556 from stevebosman/main
95 Weekday - broke code into classes and functions with named variables and comments
2022-02-06 17:20:29 -08:00
Jeff Atwood
80a08da9cb Merge pull request #557 from roygilliam/main
Initial conversion to C#
2022-02-06 17:19:53 -08:00
roygilliam
ea190fda33 Initial conversion to C# 2022-02-06 19:30:59 -05:00
Steve Bosman
2b7fd63c31 Merge branch 'coding-horror:main' into main 2022-02-06 22:41:14 +00:00
Steve Bosman
9a76fa76fb 95 Weekday - move methods into appropriate? scopes or classes 2022-02-06 22:40:07 +00:00
Steve Bosman
b981f2b9de 95 Weekday - move methods into appropriate? scopes or classes 2022-02-06 22:38:56 +00:00
Jeff Atwood
63625d3e45 Merge pull request #554 from BuckyMHz/bowling-csharp
Bowling in csharp
2022-02-06 14:26:26 -08:00
Jeff Atwood
a85fc832bd Merge pull request #555 from BuckyMHz/bunny-csharp
Bunny in csharp
2022-02-06 14:25:30 -08:00
Steve Bosman
463351287e 95 Weekday - move methods into appropriate? scopes or classes 2022-02-06 21:53:50 +00:00
Paul Sobolik
9517d86f29 Bunny in csharp 2022-02-06 16:30:50 -05:00
Paul Sobolik
de5a55c1c3 Bowling in csharp 2022-02-06 10:31:44 -05:00
Paul Sobolik
2e9c8ab150 Bowling in csharp 2022-02-06 10:27:47 -05:00
Paul Sobolik
97186e7d83 Bowling in csharp 2022-02-06 10:25:54 -05:00
Steve Bosman
a599e47e3d 95 Weekday - reduce use of lambdas; add a single method for tidying up values 2022-02-06 00:10:37 +00:00
Steve Bosman
9fe585c94a Merge branch 'coding-horror:main' into main 2022-02-05 22:32:36 +00:00
Jeff Atwood
bd6f576e70 Merge pull request #551 from stephancom/58-love-ruby
58_Love: ruby
2022-02-05 11:39:21 -08:00
Jeff Atwood
e75ce83ddd Merge pull request #552 from trwyant/95_Weekday_trw
95 weekday trw
2022-02-05 11:25:01 -08:00
Tom Wyant
65953f8496 Merge branch 'main' into 95_Weekday_trw 2022-02-05 09:42:33 -05:00
stephan.com
239e511b66 58_Love: ruby 2022-02-04 22:54:12 -08:00
Steve Bosman
277ab47019 95 Weekday - move functions into classes 2022-02-03 23:44:23 +00:00
Jeff Atwood
02b2db4db5 Merge pull request #550 from trwyant/60_Mastermind_perl_trw
Port 60_Mastermind to Perl.
2022-02-03 15:33:42 -08:00
Tom Wyant
c5ef9f42a2 Port 60_Mastermind to Perl. 2022-02-03 14:44:49 -05:00
Jeff Atwood
accc410577 Merge pull request #549 from aldrinm/main
Port of 83 Stockmarket to Java
2022-02-03 09:45:41 -08:00
Aldrin Misquitta
285e658bbc Document a bonus option to view the game data as a tree! 2022-02-03 16:48:34 +00:00
Aldrin Misquitta
5f4e40e733 Port of 83 Stockmarket to Java 2022-02-03 15:57:20 +00:00
Dave Burke
15c26cbe09 Limit number of decks to 1
The subroutine to get a card shuffles 52 cards when the deck is run
through:

100 REM--SUBROUTINE TO GET A CARD.  RESULT IS PUT IN X.
110 IF C<51 THEN 230
120 PRINT "RESHUFFLING"
130 FOR D=D TO 1 STEP -1
140 C=C-1
150 C(C)=D(D)
160 NEXT D
170 FOR C1=52 TO C STEP -1
180 C2=INT(RND(1)*(C1-C+1))+C
190 C3=C(C2)
200 C(C2)=C(C1)
210 C(C1)=C3
220 NEXT C1
230 X=C(C)
240 C=C+1
250 RETURN
2022-02-03 08:31:04 -06:00