35 Commits

Author SHA1 Message Date
Sourcery AI
71d02673a9 'Refactored by Sourcery' 2024-08-19 03:46:27 +03:00
Guido Knips
7a62098e94 Un-ignore Cargo.lock
Official cargo documentation says Cargo.lock should be
under version control for binaries (but not for libraries)

see https://doc.rust-lang.org/cargo/faq.html#why-do-binaries-have-cargolock-in-version-control-but-not-libraries
2023-08-28 21:06:35 +02:00
Martin Thoma
ac184fec42 Python: Type annotations 2022-04-02 10:56:43 +02:00
Martin Thoma
c500424956 Simplify Python Code
print_with_tab / print_with_whitespace is trivial with Python
string formatting and was mostly used in only 2 lines.
2022-04-02 07:32:09 +02:00
Martin Thoma
1b1d50986b Python: Add type annotations to all 'print' functions (#662)
* Add test to superstartrek and fixes several issues in superstartrek - I probably introduced them 🙈
* Mastermind type annotations
2022-03-21 10:41:14 +01:00
Jeff Atwood
f40a1fc465 add Porting Notes to readme.md for each game 2022-03-18 19:50:22 -07:00
Martin Thoma
3b2739b8a2 Clean Code: Apply flake8-simplify to Python
Also flake8-comprehensions which was added to the CI

For flake8-simplify, there are a few false-positives,
e.g. https://github.com/MartinThoma/flake8-simplify/issues/115
2022-03-18 22:29:56 +01:00
Martin Thoma
dc511472da Python: Code cleanup 2022-03-17 07:51:10 +01:00
Chander Jindal
95720c4d4a Single Player TicTacToe Hard
In this one at best you can Tie, you will not Win.
2022-03-16 13:10:46 +05:30
Chander Jindal
f1878b2b63 Delete 89_Tic-Tac-Toe/python/TicTacToe_exe directory 2022-03-16 12:30:15 +05:30
Chander Jindal
e91550c1ab Merge branch 'coding-horror:main' into main 2022-03-16 12:29:26 +05:30
Jeff Atwood
6f6ac93d1f Merge pull request #633 from mojoaxel/js-terminal-style
Add "nice" terminal style stylesheet for javascript html
2022-03-15 23:50:18 -05:00
Jeff Atwood
43f2ec013a add 00_Alternate_Langage folder and move alternate ports there 2022-03-15 20:49:07 -07:00
Martin Thoma
0ba0307767 Python: Fix linting issues
The following Flake8 issues were fixed:

* W291
* W504

* F821
* F401
* F541

* E402
* E711
2022-03-14 13:13:20 +01:00
Alexander Wunschik
f2b3d6f2ed add terminal-stylesheet for javascript html 2022-03-13 11:23:05 +01:00
Chander Jindal
40557ce86b Classic TicTacToe just in Executable format
First, pick either 'X' or 'O' from the screen then, play the normal one Player TicTacToe.
Playing on Terminal is kinda boring so, I made it into an executable file.
2022-03-12 22:26:23 +05:30
Jeff Atwood
7b72a6a75d Merge pull request #603 from MartinThoma/apply-pre-commit
MAINT: Apply pre-commit
2022-03-05 14:30:55 -06:00
Rohit Lohia
4bf0c62267 Added missing break statement
The break statement would prevent infinite loop when player choose 'o' or 'O'
2022-03-05 20:29:33 +05:30
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
masykur
4663a8e550 Add tictactoe2 in C# and reorganize project folder 2022-03-04 16:31:01 +07:00
masykur
1e082e8650 Added tictactoe1 in Pascal 2022-02-26 11:32:49 +07:00
masykur
744bafebf1 Added tictactoe1 in Golang 2022-02-26 09:54:21 +07:00
masykur
1849d7abfb Merge branch 'main' of https://github.com/masykur/basic-computer-games into main 2022-02-26 08:48:11 +07:00
masykur
ee141149f7 Bug fix of C# logic and ignore .vscode/ folder 2022-02-26 08:47:53 +07:00
cowboy8625
4e85aa83cd A rust verstion of the Tic Tac Toe Game 2022-02-21 07:35:21 -06:00
ribtips
b59eba3534 modified the AI logic to make it a bit more difficult 2022-02-11 12:12:02 -05:00
Zev Spitz
d35fa5a546 Simplify TicTacToe (C#) folder structure 2022-01-17 15:17:54 +02:00
Zev Spitz
75def2707d Add sln and csroj/vbproj files where missing 2022-01-16 08:17:31 +02:00
Ahmad Masykur
5bb1bb5c38 Add tictactoe1 in C# 2022-01-09 16:43:31 +07:00
RibTips
501deb035c Fixed game termination bug
Fixed issue where the game wouldn't terminate properly if the computer goes first.
2022-01-07 10:59:03 -05:00
RibTips
8c8a00df0f 89_TicTacToe2 in perl 2022-01-07 02:58:35 -05:00
RibTips
6dda7ce25a 89_TicTacToe in perl 2022-01-07 02:46:39 -05:00
LukasMurdock
76c5e1e995 add 17-96 2022-01-03 02:13:21 -05:00
John Long
355ac8ec8e Add Kotlin for Tic-Tac-Toe 2022-01-01 20:45:20 -08:00
Chris Reuter
d26dbf036a Removed spaces from top-level directory names.
Spaces tend to cause annoyances in a Unix-style shell environment.
This change fixes that.
2021-11-21 18:30:21 -05:00