Commit Graph

2237 Commits

Author SHA1 Message Date
Uğur Küpeli
3e7d530fc6 rust port 2022-05-07 10:52:57 +03:00
Jeff Atwood
9dd1c0e218 Merge pull request #740 from ugurkupeli/90_Tower/rust
90 tower/rust
2022-05-06 13:23:07 -07:00
Jeff Atwood
bdb831cc84 Merge pull request #741 from ugurkupeli/50_Horserace/rust
50_Horserace/rust
2022-05-06 13:22:14 -07:00
Uğur Küpeli
62a873b989 rust port
wrote the intro,
directions,
and max players check
2022-05-06 20:29:52 +03:00
Uğur Küpeli
b055cba4cb rust port 2022-05-06 20:15:45 +03:00
Uğur Küpeli
0f2360797b rust: final 2022-05-06 16:04:34 +03:00
Uğur Küpeli
ece3fe0f52 fixed drawing 2022-05-06 13:22:57 +03:00
Jeff Atwood
3e8b3901d7 Merge pull request #736 from ugurkupeli/29_Craps/rust
rust port of craps
2022-05-05 10:21:14 -07:00
Jeff Atwood
6dd3521f09 Merge pull request #739 from ugurkupeli/81_Splat/rust
81 splat/rust
2022-05-05 10:20:36 -07:00
Jeff Atwood
71199f4441 Merge pull request #735 from ugurkupeli/64_Nichomacus/rust
rust port of nicomachus
2022-05-05 10:20:18 -07:00
Uğur Küpeli
b86c30e89c init
working on draw methods
2022-05-05 02:00:33 +03:00
Jeff Atwood
14ab9210f6 Merge pull request #737 from BrBill/hangman-random-word-order
44_Hangman ruby: randomize seed and use the shuffled array for puzzle order
2022-05-04 15:11:19 -07:00
Jeff Atwood
81ed22ef20 Merge pull request #738 from ugurkupeli/62_Mugwump/rust
62 mugwump/rust
2022-05-04 14:56:06 -07:00
Uğur Küpeli
6ac6ed36ef Final 2022-05-05 00:22:30 +03:00
Uğur Küpeli
048afbb0e8 lose messages done 2022-05-04 21:29:06 +03:00
Uğur Küpeli
d48c9edcd4 game loop done
todo:
- write/read to/from saved games
- win & lose messages
2022-05-04 21:06:15 +03:00
Uğur Küpeli
f286e3391b intro done
game intro:
asking or generating random terminal velocity and celestial body acceleration.
2022-05-04 19:05:32 +03:00
Uğur Küpeli
6f39db56bf hopefully done 2022-05-04 16:20:46 +03:00
Uğur Küpeli
844e190ca9 game loop almost done
todo: play again prompts and exit
2022-05-04 13:57:37 +03:00
Uğur Küpeli
b1106d3112 separated files 2022-05-04 12:36:38 +03:00
Uğur Küpeli
f9c4bd620b fixed draw_board 2022-05-04 12:32:14 +03:00
Uğur Küpeli
1fcda277e2 fixed coords generation 2022-05-04 12:04:43 +03:00
BrBill
6525db5e67 44_Hangman ruby: randomize seed and use the shuffled array for puzzle order. 2022-05-03 18:46:57 -07:00
Jeff Atwood
9a582ed0d9 Merge pull request #732 from AnthonyMichaelTDM/fixes_for_Mastermind
Fixes to Rust version of Mastermind
2022-05-03 18:31:06 -07:00
Uğur Küpeli
fb8996a72d init
temp commit -- does not compile
2022-05-04 03:21:28 +03:00
Jeff Atwood
d7be02e3a1 Merge pull request #734 from ugurkupeli/96_Word/rust
rust version of word
2022-05-03 12:43:33 -07:00
Uğur Küpeli
50dc424291 rust port of nicomachus 2022-05-03 15:59:29 +03:00
Uğur Küpeli
af910ac126 rust port of craps 2022-05-03 14:53:29 +03:00
Uğur Küpeli
856da24488 fixed win state condition 2022-05-03 10:28:20 +03:00
Uğur Küpeli
056312f359 rust version of word 2022-05-03 10:12:18 +03:00
Anthony Rubick
12e6bc0b98 Merge branch 'coding-horror:main' into fixes_for_Mastermind 2022-05-01 11:25:22 -07:00
Jeff Atwood
e513b77ac5 Merge pull request #731 from jnellis/main
Fixes to python version of Mastermind
2022-05-01 10:20:35 -07:00
AnthonyMichaelTDM
9cb7c31fb1 bug fixes and logic changes 2022-04-30 17:35:17 -07:00
AnthonyMichaelTDM
4636e6543d created new project w/ refactored Mastermind port 2022-04-30 17:20:36 -07:00
AnthonyMichaelTDM
54b2366076 create new project for a refactored mastermind 2022-04-30 14:32:45 -07:00
Joe Nellis
350ea1dda5 Merge remote-tracking branch 'origin/main' 2022-04-30 01:38:18 -07:00
Joseph Nellis
d431dce0ab Merge branch 'coding-horror:main' into main 2022-04-30 01:37:40 -07:00
Joe Nellis
dcf816f00e Merge remote-tracking branch 'origin/main'
# Conflicts:
#	60_Mastermind/python/mastermind.py
2022-04-30 01:33:41 -07:00
Joe Nellis
84fce13f35 Refactoring player turn and computer turn to separate methods. Computer turn logic previously ignored counting turns. Computer turn previously gave up the round if the user enters "inconsistent information" about the computers guess when it should have restarted the computers turn. Refactoring to remove usage of 'flag' variables to control program flow. 2022-04-30 01:31:59 -07:00
Joe Nellis
f74367fa59 Refactoring player turn and computer turn to separate methods. Computer turn logic previously ignored counting turns. Computer turn previously gave up the round if the user enters "inconsistent information" about the computers guess when it should have restarted the computers turn. Refactoring to remove usage of 'flag' variables to control program flow. 2022-04-30 00:42:24 -07:00
Joe Nellis
8bc2b33a58 Refactoring to distinguish setup of the game from the actual game. Changing globals to uppercase to signal constancy while assigning them via return from #setup_game. The two remaining mutable globals are for score keeping. Maintain commenting style of multistring inside method body. 2022-04-29 22:20:22 -07:00
Joe Nellis
cca3f941d2 More cleanup refactoring, losing unused variables, shadowed globals, unnecessary spaces, and long lines, and debug prints. 2022-04-29 17:34:31 -07:00
Joe Nellis
4308713ec2 Refactoring of the #get_possibility and #make_human_readable methods into one method, #possibility_to_color_code, that just converts a solution permutation (out of the possible permutations) straight into a string code of letters.
Both of these methods are essentially a flow of the first method being fed into the second and thus they are combined and the intermediate data structure (List[int]) is no longer needed.
2022-04-29 17:10:10 -07:00
Joe Nellis
44983bb25f More off by 1 errors of the same type as the previous commit for the computer guessing the secret code. All errors are involved in the algortihm that converts an empty list to a guess. 2022-04-29 13:54:53 -07:00
AnthonyMichaelTDM
f745dad4b2 Rust: update comparison logic to follow README.md
will likely refactor this project later
2022-04-29 11:18:17 -07:00
Jeff Atwood
806ce22d53 add porting notes about potential bug 2022-04-28 11:40:32 -07:00
Joe Nellis
bacad32a61 Off by one error in for/range. Previously if the computer chose a secret code of zero (all blacks) it would skip initialization entirely and the player would not be able to finish the puzzle. Alternatively, if the computer chose the highest secret code (e.g. all Red in a three color puzzle), the actual secret code would be initialized to one less (RRW). 2022-04-24 17:39:03 -07:00
Jeff Atwood
9ce5c9bb23 Merge pull request #728 from AnthonyMichaelTDM/rust-port-32_Diamond
Rust port 32_diamond
2022-04-22 15:13:37 -07:00
AnthonyMichaelTDM
69e9c1438e bit of modification to match description of readme 2022-04-22 13:27:06 -07:00
AnthonyMichaelTDM
733513c156 finished 32_diamond 2022-04-22 13:02:52 -07:00