All Questions

Tagged with
Filter by
Sorted by
Tagged with
5
votes
1answer
82 views

Python text game. combat system with enemies in the same position

I recently started programming and ran into a problem in the battle algorithm. This piece of code checks if there is someone in the position of the main character. If there is, then the battle begins (...
2
votes
1answer
63 views

Terminal python tic-tac-toe game

As someone that started to learn basic python programming, I decided to make a Python tic-tac-toe game for the terminal, to develop my OOP skills. I would like to know if my code has a lot of ...
2
votes
2answers
115 views

Object-oriented poker game

To give a short contextual description: It is a poker game. I plan to add "cards" and a "pot"-object later on and then learn event-driven programming so that I can add a GUI. ...
2
votes
1answer
44 views

Python Text-Based Hangman Game

I have just written a hangman game in Python for a school project. It reads in a list of words from a text file, and graphics from another text file. For each word, the program asks keeps asking for ...
4
votes
1answer
78 views

class that handles the rpg game map

I created a class to handle maps in my RPG game, before it became a class this was a collection of functions I created, but I thought it could be used as a class. although this code is working but i ...
9
votes
2answers
895 views

Terminal Typing Game

A few weeks ago, I developed a terminal game that increases your typing speed. The game is all about typing, providing difficulty levels from easy to hard. I feel like this terminal game won't become ...
6
votes
1answer
96 views

python wordgame solver in 270 lines

The live version is at my github Lingo is a game where the host secretly picks a 5 letter word, then provides the first letter to the player. The player then guesses a word, and the host gives ...
4
votes
1answer
51 views

Hangman Game Efficiency

To put it simply, I'm making a hangman game and it works as it is, it correctly outputs what I want it to, and I have no problem with submitting it now. I only wish to make it more efficient, and I ...
7
votes
1answer
144 views

A beginner's first Tic Tac Toe implementation

I've been teaching myself Python and decided to make a Tic Tac Toe game for a bit of practice. Any criticisms or pointers are welcome! ...
3
votes
1answer
105 views

Tic Tac Toe in Python 3.x

I made Tic Tac Toe in Python. Standard code review, please tell me ways to improve. I am very new to Python, so please do not criticize very roundabout ways. Thanks. ...
4
votes
2answers
110 views

Revised Top-Down Dungeon RPG

Introduction: So far, the game works well, and my only major concerns, are a bullet system (including a function where you click the mouse to shoot the bullets), and a collision system between the ...
3
votes
1answer
66 views

Frame Pacing and Animation in Python/tkinter

The goal of each frame of the animation to be the same length as the one before it, regardless of the amount of processing that takes place as the frame is being built. This is a little animation demo ...
4
votes
2answers
111 views

Language skill tester using Pygame

I made this little game that tests our language skills. It uses one external module, pinyin, which can be installed via the command prompt command ...
2
votes
1answer
57 views

python Repeat the Sequence

This is a game in which a sequence of 4 characters is displayed to the player, one at a time with a delay between them. Then the player must input that sequence as it was displayed. Sequences are ...
1
vote
1answer
120 views

Simplest possible Tic Tac Toe AI in Python

Last week I challenged myself to create the smallest possible code for a Tic Tac Toe game with an AI as opponent. Smallest possible in regards to say least number of characters used. The requirements ...
2
votes
0answers
35 views

A little board game framework with MCTS AI

There are two main classes: Game and MCTSPlayer. The first one is just an abstract class with a couple of methods and some hints ...
3
votes
1answer
253 views

Python Beginner - Basic Hangman Game Using Turtle

I built upon a previous beginners' class' hangman game to do graphics with Turtle. It should work with any .txt list of words in whatever location you specify at the top of the code (in my case on ...
5
votes
1answer
86 views

Tic Tac Toe Shared Keyboard Game

I wrote a Tic-Tac-Toe game for two players, where each player uses the same keyboard. It's not a school project or anything, I just thought this would be fun to code for practice. I'm open to and ...
3
votes
1answer
81 views

Tic Tac Toe using the __init__ constructor

I recently learned about classes in python. I only have a brief understanding of them, but I think it's good enough for me to write a tic tac toe program (been ...
3
votes
2answers
225 views

Hangman Game with Python

I'm super excited to share my hangman game with you. (haven't added the graphics yet...) I will be using this program as my final project (for school), but I would like to have this polished before ...
0
votes
2answers
158 views

Random Number Guessing Game Code Efficiency - Python

UPDATE: I have added: a play-again option score keeping thing difficulty levels **(but I still need help with the functions part). I don't feel it's necessary to explain what my code does, as it is ...
3
votes
0answers
64 views

2048 in Matplotlib

I did an OOP to make 2048 using Matplotlib visualization. The color dictionary is for setting different colors to each number in the game. There are two classes ...
4
votes
1answer
209 views

Tic Tac Toe game in Python - Beginner

I'm a beginner to python and as part of my course I'm instructed to create a simple tic tac toe game. I'd be very appreciative and interested of any insight, criticism, instructions, best practices or ...
6
votes
1answer
53 views

Game of Noughts and Crosses Feedback

this is my 2nd project on Python. I created a game of Noughts and Crosses(Tic-Tac-Toe) that you can play against the computer. What are your thoughts on my implementation of the game? Is there ...
3
votes
2answers
103 views

Creating some Loaded Dice to make our board game fairer

Some friends and I were playing a board game and decided that the random dice rolls just weren't fair! So we came up with a scheme for making the rolls slightly more evenly distributed, and I ...
4
votes
2answers
54 views

Improvements to simple Hangman Game in Python

I created this hangman game today as my first stand alone project. It is a quite basic and simplified approach. How could I improve the game to make it more interesting? ...
4
votes
1answer
90 views

Made a simple platformer game in arcade library of Python

This is a simple game I am making in the arcade library of Python. I am quite new to object-oriented programming as well as game development. I feel like a lot of the code is inefficient, so I was ...
5
votes
1answer
153 views

Hangman Game in Python-3

...
3
votes
2answers
256 views

Blackjack script in Python

Recently I had a python test and, unfortunately, I failed. I'm going to re-do my test and the teacher gave me the tip to work more efficiently and clean. To practice this I made a blackjack game about ...
5
votes
2answers
258 views

NEA Computing Task 2 Dice Game

I was recently set Task 2 as seen below and I realise someone answer the question on this site here but I wanted a fresh opinion TASK 2: Allows two players to enter their details, which are then ...
8
votes
2answers
370 views

guess your number

Simple script that asks you to think of a number between 1 and 63 then offers list of numbers and asks if your number is in that list. Can this be refactored further? Are there better ways to create ...
4
votes
1answer
80 views

Command-line English Hangman game

Introduction As a Python neophyte, I implemented the Hangman game as a practice, which operates case-insensitively on the 26 English letters. My biggest concern at the moment is my use of ...
6
votes
1answer
149 views

A Python snake game (using Pygame)

So this is a fun little project I am working on. This is my current progress with the game: ...
0
votes
1answer
94 views

Python Tic-Tac-Toe [closed]

I made a very primitive Tic-Tac-Toe using Python and I would like a grade on how well I coded the game. What code was there that could've been simpler or more efficient? And any advice you can give me?...
-4
votes
1answer
84 views

basic two-player tic tac toe game [closed]

Here is my code: ...
12
votes
4answers
3k views

Python Risk game

I solved a Risk game question (http://www.pyschools.com/quiz/view_question/s3-q12) in two ways, but as I am currently learning Python, I'm just wondering how to rate my methods of solving this ...
6
votes
1answer
566 views

Python: Astar algorithm implementation

I have implemented Astar algorithm for a problem on an online judge relating to maze given start and end positions along with a grid representing the maze. I output the length of the path along with ...
2
votes
1answer
285 views

Pong and Breakout games

So I have made 2 games without any internet when on vacation. I have used turtle because I did not install pygame. I was wondering how I could improve my games. Here is the code: Pong: ...
2
votes
1answer
141 views

Python Blackjack

A simple terminal blackjack game written in Python. Follows basic blackjack rules: Blackjack pays 3 to 1, Hit, Stick, Double Down and Splits Dealer hits until 17 Keeps track of some data Wrote it for ...
2
votes
0answers
223 views

Python code for UNO Game

It's my first time here, so please accept my apologies in advance if something is wrong with my approach to asking. I've been learning Python for a couple of months and I decided to have a go at a ...
4
votes
0answers
95 views

Text-based tic-tac-toe game in Python

I'm working on a text-based tic-tac-toe game, mostly for fun and because I'm learning programming. I would appreciate any comments you could give me to improve it. Main structure: Uses a Board class ...
8
votes
1answer
1k views

League of Legends Summoner Analysis

This program will ask for user to insert summoner and base from the last 20 games of said summoner, it will give avg stats and see if good or not by wins in last 20 games(a simple grading system). <...
8
votes
4answers
740 views

Python text-based Tic Tac Toe

I created a simple text-based Tic Tac Toe game in Python using OOP. Currently the computer moves are completely random - I plan to add some sort of algorithm later (no idea how to do that yet though) ...
2
votes
0answers
185 views

Strip Poker game

I've made a short simple strip poker game. It follows the traditional rules of poker (4 of a kind>flush>straight,etc.), one round of betting followed by an option to change cards, then another ...
6
votes
3answers
152 views

Determine the height of a Tetris game's board after a sequence of moves

I have written a program that will determine the height of a Tetris board after a sequence of moves are made. These inputs are in the form of a comma-delimited list, and look like ...
3
votes
1answer
73 views

An emotion recognition test I designed using Pygame

for my dissertation (in psychology) I created an emotion recognition test that displays an image of a face displaying a certain emotion for a set time, then allows participants to press a button ...
6
votes
1answer
123 views

Vampiric text-based adventure game

Here is my vampire based text adventure game. I recently started learning Python and Googled for some good projects to practice with. I wrote all this code myself after checking out some examples on ...
3
votes
2answers
67 views

Hex boardgame with fast random rollouts (OpenAI gym framework)

I implemented the boardgame Hex using the OpenAI gym framework with the aim of building a bot/AI player that can learn through self-play and expert iteration (details Note: not my paper; I am merely ...
1
vote
1answer
239 views

Rock paper scissor game in Python

Hello am a new to Python and my programming concept is catching up to me. I just created my first ever project. I did not look else where for an answer, and it took me 6 hours to write. How can I ...
5
votes
2answers
209 views

Pygame Minesweeper Clone

I'm still a relative beginner to coding and I would like some feedback on my Minesweeper clone written in Python using Pygame for the graphics. I'm wondering if it would be beneficial to use classes ...

1
2 3 4 5
9