Questions tagged [game]

For questions requesting reviews of game development code.

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

Beginner 'Peg Solitaire'' game

This time I wanted to make a board game that is very popular in Brazil, it's called 'resta um', it means 'there's only one left'. The idea of the game is that there are holes in which there are pieces ...
1
vote
0answers
46 views

Snake Game for Raspberry Pi Sense HAT written in Python

Goals learn Python improve problem-solving skills improve my coding style Hardware This code runs on a Raspberry Pi 3 Model B (Raspbian OS) in combination with the Sense HAT. The 8x8 LED-Matrix on ...
6
votes
1answer
70 views

Blackjack / 21 in Python3

I have created a blackjack game in Python3 but I am worried that it is not very efficient and also there are some problems with it. Problem 1) The player almost always wins unless he goes bust as the ...
6
votes
3answers
177 views

Chess game in C

I've never programmed in C before, but decided I wanted to try making Chess. Currently there's no way to check whether the game has ended. Was looking for critique for future projects. ...
3
votes
0answers
48 views

First Attempt at Object-Oriented Programming: Tic-Tac-Toe

Began learning python about 3 months ago and this was my first OOP. I was hoping to get constructive feedback! My own thoughts after writing it were that there had to be a better way to: 1) generate ...
7
votes
2answers
1k views

Simple PyGame Connect 4

I've made a simple connect 4 game using PyGame. I'm new to python and haven't completely perfected this. I know it's inefficient but I can't tell exactly HOW to fix it? Could someone help me out? ...
21
votes
4answers
5k views

Rock, Paper, Scissors in C++

I have a fair few years experience with programming, and am currently working in a software development role, writing internal web applications in C#. This is the first C++ code I have ever written, ...
5
votes
1answer
66 views

Chess game: Part 1 - Creating the layout

After working on the project for 15 hours of I had my layout set 1 row and 1 column per square, no problem. Then I decided that I needed each square to have multiple rows. I would have never guessed ...
7
votes
2answers
106 views

Hunt the Wumpus Game (C++ with QT)

I reworked the Game I did in FLTK some while ago: Hunt the Wumpus GUI (FLTK) This time I used C++ with the Qt Framework. The result looks like this: If you want to try out the game. The full code ...
2
votes
4answers
187 views

“Rock Paper Scissors Game” Java

What can make this code better? And how could I improve this code? Oh and what I would love is if someone has a project that is not that challenging but I could learn a lot from it :)   ...
3
votes
1answer
109 views

Simulate Tic Tac Toe game using C language

I made a Tic Tac Toe game using C. Here two players, player1 and player2, can participate and play. Please rate my code and suggest improvements. ...
7
votes
1answer
79 views

Lower, Higher, or Same Card Game

This is my second script in my first language so I'm trying to get oriented and better foundations. I noticed in the while loop I got really messy but I couldn't ...
1
vote
0answers
30 views

Improving a code design of simple game mod for better teamwork [closed]

I've made this module in Lua as a mod for Project Zomboid game. In future I will develop my mods in a small team (of 2-4 programmers). At this moment I have no experience in teamwork, because most of ...
6
votes
1answer
168 views

Minesweeper Implementation c# winforms

I made a minesweeper game in c# as a method of studying, and right now its fully operational. I tried to use inheritance, recursion, and other fundamentals as clean as possible. Also I tried to use ...
3
votes
1answer
115 views

Python Dice Game

How would I clean this code/shorten it (most of it is login) What the program does: Only authorized players are allowed to play. Input from user should be validated where possible. 5 rounds. ...
2
votes
1answer
89 views

Bingo Game that needs someone to look over because of repetitive coding

I am a beginner Java programmer and am in need of someone to read over it and help me condense my repetitive coding. I wrote code for a Bingo game and feel like I repeat code too often. If anyone ...
3
votes
0answers
54 views

Creating a maze game where the game resets if you hit traps/walls and finishes when you hit a different color

Here’s my code, the traps are the slightly visible squares. The user controls a red square (with arrow keys) and cannot touch the walls or traps or else the game resets. Additionally, if the user ...
7
votes
1answer
126 views

Gem Puzzle game

I started learning JavaFX a few days ago and I have just created as an exercise a simple Gem Puzzle game. The puzzle pieces can be moved if we click on them. The visual aspect of the game is very ...
1
vote
1answer
85 views

Fruit machine game

I'm a beginner in Java, and this is the first time I have written a program from scratch without a guide explaining how and where to create classes etc. Please review my code to see whether the ...
5
votes
2answers
105 views

Scrabble Scorer in Python

I made this Scrabble with care since it will be mainly used by family that will not understand the error codes so that is why I catch basically every possible error, to make it user friendly. I have ...
10
votes
2answers
136 views

System design - Jaipur board game learning agent

Link to my previous question. I've implemented the other features of the board game, and made a simple learning method that stores state values and makes optimal moves based on that. I've used some ...
3
votes
2answers
105 views

Beginner Tic-Tac-Toe in Python

...
7
votes
1answer
121 views

Generating Infinite Procedural Terrain Using Command-Line Graphics

Continuing my trend of (ab)using the Windows command-line interface to do fancy graphics-related things with my command-line-graphics library, CLIGL, I've created an infinite procedural terrain ...
2
votes
1answer
87 views

Pong game in Python with tkinter

This is a pong game I created some time ago, but it doesn't have methods to store scores yet and also might have some bugs. It is also very slow. The code: ...
1
vote
0answers
41 views

X in a Line Console Game - Python OOP

Please could you review my code below? The game is similar to "Connect 4", but I haven't implemented diagonal checking for wins. In particular I'm interested in my use of OOP. E.g. My choice of ...
1
vote
1answer
82 views

Hangman Game using python3

Summary I made a hangman game using python but I had trouble writing clean pythonic code Questions In the code snippet I provided (Full code in the link below) I used global for: loop and points ...
9
votes
3answers
2k views

Single Player Python Battleship Game

I made a battleship game for a programming class, where I only had about a week to get it done. Under this time crunch, and the fact that I don't know python very well, I made some of the code in very ...
7
votes
3answers
196 views

2048 graphic game

This game is made for JFrame. You can control using the arrows. The numbers in the cells are the degrees of the number 2. It is possible to change the initial position of the window, its size, and the ...
4
votes
1answer
63 views

Simple Scrabble Game Scorer

I am making a program that scores a scrabble game and this is the basic version of it. Eventually I am going to add logic for double and triple words and letters but before I get too ahead of myself ...
3
votes
1answer
69 views

Video Game using tkinter

I created this game inspired by this problem: https://www.codechef.com/ZCOPRAC/problems/ZCO14001 The problem needs you create a machine that can lift boxes and drop them in a new column. Then, when ...
12
votes
5answers
2k views

A Simple Battleship Game

I have just finished learning basic-intermediate Python subjects and wanted to test myself. This Battleship game is the third game i have written. ...
5
votes
1answer
92 views

Store in console

I implemented a sign in from different accounts on which different amounts of money lie. You must also specify what will be sold in the store. When you buy, you can put things in the basket, get them ...
8
votes
0answers
140 views

Geode Contents Predictor StardewValley Mod

The goal I really enjoy the game Stardew Valley. One of the things that the game has are geodes. Much like real-world geodes, these geodes can be cracked open, and you can find some fun things inside....
5
votes
1answer
78 views

Tic Tac Toe code could probably be optimized more

I recently got some help from Stack Overflow on my Tic-Tac-Toe code for the win conditions, but I think it could be optimized a little more. Any tips? ...
4
votes
2answers
106 views

Tic-Tac-Toe in Python3

I am new to Python and would like to get helpful tips and suggestions on this code. Would be awesome if you provide info if anything is fundamentally incorrect, improve the algorithm, and any room for ...
1
vote
2answers
123 views

Minesweeper game for the console

You can set any size of the field and any number of bombs. I think I got a pretty flexible program again(Tic tac toe game for the console). What do you think about the code? I would like to know if I ...
5
votes
1answer
376 views

Tic tac toe game for the console

You can set any size of the field, you can set how much you need to put in a row to win. I think I got a pretty flexible program. What do you think about the code? I would like to know if I made ...
2
votes
2answers
82 views

Tic Tac Toe in C - Version 1

This was the first game I made not too long ago (2018), and while I'm working on another, more complex version, I want to know how good or bad I did this one and what can be improved. Note: the ...
6
votes
2answers
144 views

Minefield - A Cross Platform Minesweeper clone

I just finished a full minesweeper clone which is based on Minesweeper for Windows 95. I used C++ and Qt to realize it. The full source code can be find in my git hub. Since this is too much code ...
5
votes
2answers
121 views

Hypothetical in-game shop: Python

I wrote simple code that let users log in, see what items are available in "shop", and make a purchase if he/she has enough coins. Because the code uses csv file, if you want to test the code, you ...
12
votes
2answers
566 views

Implementing simplified Jaipur board game

I wanted to build a bot for playing Jaipur board game. I started by implementing a simplified version of the game without bot. Want to make sure I'm going in the right direction. Few of the ...
2
votes
1answer
60 views

Python Rock Paper Scissors Game

Any chance people can read my game code and see if reformatting or rewriting is necessary for a better overall code? I'd really appreciate it. ...
2
votes
1answer
145 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 ...
4
votes
1answer
113 views

Chuck Norris Joke Teller

I've created a command line joke teller which makes Chuck Norris jokes after communicating with the Chuck Norris API. It also allows you to generate a random person by communicating to the names API ...
11
votes
4answers
2k views

Python Bingo game that stores card in a dictionary

I am super proud of this python bingo game I wrote. I am posting it here to make get some help reviewing it to make sure I'm using the best practices. This is for a class, and my professor is a ...
9
votes
2answers
438 views

My second game: War Card game V.1

I'm a beginner programmer that's really motivated at the moment. I made this in two days and I'm really proud of it because I never used any tutorials or any online help. Just good ol' grey matter and ...
10
votes
1answer
868 views

My first Hangman game in Python

This is my first game and I'm really proud of it, but I think it's horribly messy. Is there any way to improve it? ...
6
votes
3answers
153 views

Battleships OOP python

This is my first attempt at some basic OOP programming. A version of battleships played within the terminal. Any feedback would be great; especially in regards to readability and proper naming ...
9
votes
3answers
452 views

Hangman Game (YAHG)

I’m in the process of learning C++ and this was an assignment for a class. It is a simple hangman game. The instructor gives no feedback, only a pass/fail remark. While this works, I would like to ...
7
votes
1answer
188 views

A simple game that keeps track of the number of questions asked

This is just a simple counter, i was able to code it in two different ways but i want to know which way is more efficient and which way is more readable. and which set of code is more "correct" in ...