14 Commits

Author SHA1 Message Date
Brian Wignall 786eb181b4 Flake8 errors 2026-01-04 05:00:08 -05:00
Sourcery AI 71d02673a9 'Refactored by Sourcery' 2024-08-19 03:46:27 +03: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
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
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
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
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
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