All Questions
38 questions
3
votes
1
answer
733
views
Simulate Tic-Tac-Toe game in Python
Simulate a tic-tac-toe game
Requirements
A player is picked at random as a first player.
The two players plays tic tac toe game.
The game ends when the board is full or either one of the player ...
3
votes
2
answers
2k
views
Python 2.7 Powerball Game
This game allows one to either pick their own lottery numbers or have them generated and checks them with the most recent numbers, jackpot, and multiplier. I use concepts such as ...
8
votes
1
answer
293
views
Simple CLI Python Hangman game
Preamble: I am very new to Python, and outside of Googling functions and a former work colleague telling me why I'm wrong, I have no formal training and haven't taken any "Learn Python" courses.
I ...
3
votes
1
answer
791
views
Noughts and crosses game for 2 players
This is my first program in Python that I have coded and I am relatively happy with how it turned out. I would like to know how I could make my code shorter and more efficient.
...
7
votes
1
answer
798
views
Python 2.7 Tower of Hanoi game with ASCII graphics
The game generates a fixed, "animated" game board via ASCII characters that is reprinted and cleared after each valid move. The format of the input for making moves is described in the script. You ...
4
votes
2
answers
8k
views
Text based survival game
I have recently made a text based survival game. I hope that I can improve the game but I am not sure where I can improve it. It is NOT EASY, don't expect to get over it the first time.
...
5
votes
1
answer
871
views
Creates a maze from file and enable user to go trough it with graphic display
I'm following the learnpythonthehardway.org book for learning Python. I recently made a one week projet and as I'm fairly new to coding program with POO and multiple files, I'd like to have someone ...
5
votes
1
answer
1k
views
Game winning optimal strategy
Consider a row of n coins of values v1 . . . vn, where n is even. a player selects either the first or last coin from the row, removes it from the row permanently, and receives the value of the coin. ...
4
votes
1
answer
5k
views
Fill in the blanks game
So I've coded a fill in the blanks game but my last procedure, play_game() is far too long.
Trying to figure out how to divide it into two functions:
Initialize
...
4
votes
1
answer
11k
views
2D Vector class
As part of a game engine I am creating, I am in the process of writing a bunch of math classes (vector2/3/4, matrix2/3/4, and quaternions to start with).
Vec2 ...
4
votes
1
answer
248
views
Atomas clone in Python
Here is my crappy clone of Atomas, a puzzle game where you combine small atoms into more valuable ones.
...
76
votes
3
answers
20k
views
Monopoly simulator
I was advised by a Reddit user to get my code reviewed on this site.
The complete code is on GitHub.
...
4
votes
2
answers
2k
views
Python command-line Tic Tac Toe for two humans
I’d love some feedback on this human v. human, tic tac toe game I wrote in Python 2.7.10. I’d love to hear your thoughts on optimization and making the code simpler and more “pythonic”.
Also, I’m ...
23
votes
4
answers
2k
views
Monty Hall Simulation
I wrote this code as my first self-directed effort and would appreciate any input on things that I've done seriously wrong. I worry that perhaps I'm over-relying on ...
7
votes
2
answers
798
views
ASCII art minesweeper clone
I wanted to code a small ASCII art minesweeper clone, to see what it looked like and how much code it needed.
The result is not so bad, under 80 new lines of code in total. It looks kinda readable to ...