Questions tagged [game]

For questions requesting reviews of game development code.

Filter by
Sorted by
Tagged with
9 votes
8 answers
3k views

Can I lessen the use of boolean flag variables in this snippet?

Below snippet is part of a game application's logic and the Update function is called every frame (about 60 times a second). ...
Mukul Kumar's user avatar
10 votes
3 answers
1k views

Here is a Tic Tac Toe game in Python using functions

I am a new programmer, learning from youtube and other sites I can get my hands on. The assignment was clear. Create a Tic Tac Toe game using functions as much as possible and where needed. I am ...
LindaJuniordev's user avatar
1 vote
0 answers
33 views

Snake game player movement pygame

I've begun my journey with game development a little while ago, thought recreating snake would be cool, except I plan on adding other cool mechanics and stuff to it later. The player controller script ...
Trevn Jones's user avatar
4 votes
1 answer
127 views

This is a Tic Tac Toe game in Python for 2 players on a keyboard using functions

I have written a Tic-Tac-Toe game for two players, where each player uses the same keyboard in Python I'm happy with all kinds of feedback from this community, it is very much appreciated. I am ...
Joris's user avatar
  • 41
1 vote
1 answer
127 views

Mouse and keyboard event system

I wrote a mouse and keyboard event system in C++, using the GLFW library to get mouse and keyboard states. I've been working on a 3D game engine of my own for a long time (about 9 months) and wanted ...
Tristen Woodruff's user avatar
6 votes
2 answers
376 views

DOS-based Boggle simulator

I'm testing my C skills by writing my first-ever full application in C. I'm targeting DOS (as in MS-DOS/PC-DOS and DOSBox) and am compiling the code with Open Watcom v2.0. The application does the ...
ArrayBolt3's user avatar
3 votes
2 answers
2k views

Event System using C++

I am excited to share that I have developed an event system in C++. I have always been passionate about programming and have long aspired to create a low-level game engine solely using C++, OpenGL, ...
Andrei Rost's user avatar
3 votes
1 answer
142 views

Snake game using Canvas API

Edit 2: For anyone interested, you can play the game at buggysnake.com Edit 1: I have typed up the code for making the body of the snake move. It's not perfect and there are small problems I need to ...
Seeker's user avatar
  • 133
4 votes
1 answer
94 views

Basic CLI BlackJack Game in Java

I am looking to see which aspects of this code could use improvement. In both design, and basic implementation and coding. I'm using IntelliJ and Java SE 20. ...
Reilas's user avatar
  • 151
2 votes
2 answers
123 views

OOP tic-tac-toe

I have created my first personal project - tic tac toe game. It is my first time approaching code using Object-Oriented paradigm and I would like to get feedback on it and on aspects where I can ...
Ebrahim Al-Aghbari's user avatar
4 votes
2 answers
162 views

"paper, rock, scissors" game

This is the first time I made a quick program, which is a game "paper, rock, scissors'. I am looking for any advice, and information if it is done in proper way or it is not. I did my code by ...
watsky's user avatar
  • 41
4 votes
1 answer
166 views

Hangman Game in HTML + CSS + JS

I recently developed a hangman game with HTML, CSS and JavaScript and I would like to get your feedback and tips to improve it. The goal of the game is to guess a secret word before 6 incorrect ...
Lucio Mazzini's user avatar
0 votes
1 answer
145 views

Text based naval game

here is the second game I have made. its not easy and I was hoping someone could test it and bring some improvements to the table. fun project for learning. ...
codec's user avatar
  • 27
4 votes
1 answer
214 views

Rock, paper, scissors with HTML & CSS & JS

I started studying web development a few months ago and to practice my skills I decided to do the game of rock, paper, scissors. Here are some questions for review: Is the use of HTML semantics ...
Lucio Mazzini's user avatar
4 votes
1 answer
242 views

2D Minecraft - infinite chunk system

I am making a 2d minecraft clone for a hobby. Here is my code: 2D_MC.py: ...
coder's user avatar
  • 179
7 votes
2 answers
127 views

simple connect four game

I made a simple connect four terminal game in C and was wondering if I could get feedback on it. I mainly want to know where pointers could have optimised my code, and if there are any major ...
Willem's user avatar
  • 71
3 votes
1 answer
79 views

Winsock code for lockstep RTS game

Summary This is my core networking code for the lockstep RTS game that I am creating. Clients connect to a relay server via a TCP socket, and any packets sent to the relay server are forwarded to all ...
Dan's user avatar
  • 341
6 votes
1 answer
296 views

Event manager for games written in C++17

This is a single header event manager that I'm using in my game. Disclaimer I ripped everything from these lovely people: https://austinmorlan.com/posts/entity_component_system/ C++ Event System - ...
Burning Flemingo's user avatar
4 votes
1 answer
116 views

Text based game with Goblins, Trolls and Beasts

I have just started to learn to code as it always been a pipe dream of mine but I found it hard to understand, however, with the rise of LLMs I have found the experience not nearly as daunting as ...
Idontcodesogood's user avatar
7 votes
1 answer
81 views

Any advice for my HANGMAN game with PySimpleGUI?

Could you please tell me if there's anything I could improve in my Hangman Game ? I made this Hangman Game in PyCharm and been improving and adding features for some time. It would be nice if someone ...
Paichiwo's user avatar
  • 121
0 votes
1 answer
93 views

Strategy Pattern Inside State Pattern

I'm making a fps game where I created a hierarchical state machine; the problem is the two types of movement (standing movement and crouching movement). They are very similar; the only difference is ...
Thomas's user avatar
  • 25
6 votes
1 answer
161 views

Crossword puzzle app

I was hoping someone could give me any tips or advice on this program I wrote for my high school class. The point of the program is to create a workable crossword puzzle in the console. If it works ...
Sean Riley's user avatar
2 votes
1 answer
78 views

Game of life(random generation, pygame)

I recently created game about life in python. First version of code was console, but recently I rewrote this game in pygame. I decied upgrade game and was added age of cells. But now I can see that my ...
Максим's user avatar
6 votes
3 answers
2k views

The Game of Nim

I am currently looking for a language to program a game for my FYP which is to program the game "The game of nim". I am currently looking at pygame for this program, I hope someone can give ...
Benny Kwan's user avatar
6 votes
4 answers
202 views

2-Player Chess in WinForms V.2 (With Separation of Concerns)

Introduction After getting initial feedback on my first working version of this Chess WinForms game here, I have used the suggestions and comments from there to come up with this new version, trying ...
Shinglington's user avatar
6 votes
1 answer
217 views

Minesweeper game implementation in (vanilla) JS

I decided to write my own version of a Mine Sweeper game as an excuse for a Javascript/HTML/CSS project. Just to make the question self-contained: Mine Sweeper is a game with a rectangular board ...
Tomerikoo's user avatar
  • 312
4 votes
3 answers
255 views

Fully-functioning chess game in Python

This post is in succession to this question. I have implemented all functionalities like castling, en-passant, pawn promotion etc. 50 move rule and 3-move repetition is pending. I would like my code ...
RandomCoder59's user avatar
5 votes
2 answers
216 views

Working on a text-based 4X game in C++

The ‘skeleton’ of the game works, making it playable, so I’m mainly just looking for renditions and feedback on both the code, and the actual game. Here’s the things I’m already working to fix/add: ...
Selisine's user avatar
4 votes
3 answers
152 views

Word-guessing game

The objective of the game is to guess a five-lettered word in five guesses or less. When the user (player) enters a word, the application will inform the user whether their guess was correct or not. ...
Brad's user avatar
  • 41
3 votes
2 answers
274 views

2-Player Chess in WinForms

Introduction I decided to program a two player Chess game in C# windows forms to help me to improve my programming skills and OOP skills. I have come to a working finished program (as far as I can ...
Shinglington's user avatar
4 votes
1 answer
77 views

number-guessing game - 1 through 30

I created this python number-guessing game and I have two concerns with it. The code works as intended with no flaws; however, I'm not too fond of the way I wrote it. It is messy, unorganized, and all ...
Andrea A. Venti Fuentes's user avatar
1 vote
2 answers
67 views

UI of a text-based game with simple print statements

I am writing a simple text adventure in python that will eventually have the capability of running other text adventures within it, but my code is all over the place and the UI is terrible. What are ...
PeakMars's user avatar
0 votes
0 answers
53 views

Windows console based card solitaire (Klondike)

I have written a solitaire card game for the windows console. It's the Klondike version with 4 cards in each of the 7 piles (see https://en.wikipedia.org/wiki/Klondike_(solitaire)). The piles must be ...
AcK's user avatar
  • 141
0 votes
0 answers
44 views

Main menu for a LÖVE pong game

It's supposed to be the code for the main menu of a pong game I'm writing using LÖVE. I believe no knowledge on it is necessary for understanding, since it seems very explicit. I'm mostly unsure if ...
matticebox's user avatar
5 votes
1 answer
106 views

guess-the-number game

I'm a total Python beginner and made a number guessing game as first project. The user has to guess the number the computer is thinking of. Please give me feedback! ...
lummmm's user avatar
  • 51
4 votes
1 answer
288 views

Hangman game, with secret word provided by user

I recently started learning programming and in particular Java. I wrote this small hangman game which takes the input for the secret word from the user. It all works as intended; I would like to know ...
ANTONIO ALTAVILLA's user avatar
3 votes
2 answers
309 views

(Rev. 2) Command-line Tower of Hanoi game

This is a follow-up from Command-line Tower of Hanoi game -- many thanks to those whose reviwed it. By request, the project is also available on GitHub. Forks and bug reports are welcomed. Compiled ...
Mode77's user avatar
  • 641
1 vote
0 answers
128 views

Haskell SDL2 Yellow Snow Game. My first program [closed]

I have been working hard trying to learn Haskell, or at least understand it enough to make simple programs. This is my first program. I have been working on it for about a month now. I had already ...
Jeremiah C's user avatar
5 votes
2 answers
1k views

Command-line Tower of Hanoi game

This code has been revised. See (Rev. 2) Command-line Tower of Hanoi game Compiled with g++ 9.4.0. makefile included. Any ...
Mode77's user avatar
  • 641
0 votes
0 answers
118 views

Queue system for a 1v1 multiplayer game in node.js with socket.io

I'm trying to create a simple node app utilizing socket.io rooms where users can play a 1v1 game against other users. The system I have in place at the moment is when a user clicks the play button ...
HDawG's user avatar
  • 33
2 votes
1 answer
53 views

Multiplayer javscript game client side

Any improvement suggestions are welcome, as I'm not the best at making games lol. I have it structured like how Java would be because in the future I want to make it run on java and in the browser. ...
cs6413110's user avatar
6 votes
3 answers
268 views

Intersecting rectangles on a torus

Description Imagine a space like the arcade game Asteroids where everything wraps around right to left and bottom to top - effectively coordinates on a flat torus. The diagram shows an example of two ...
FreddyFlares's user avatar
7 votes
2 answers
1k views

Chess Game with GUI in C++ using SDL2

Introduction So, I recently completed a chess game with a GUI in Python, using Pygame. Upon research, I learned that Pygame is built on SDL, and since I wanted to practice C++ more, I decided to code ...
cold10's user avatar
  • 459
7 votes
5 answers
1k views

Rock, Paper, Scissors game with CPU

I have written the below shared code and wanted to ask for some optimization tips or even alternative (more elegant?) ways of solving the task at hand (maybe without ...
Gisvaldo's user avatar
3 votes
0 answers
230 views

Generic Monte Carlo Tree Search implementation in Rust

I'm working on a project where I need a strong AI for a combinatoric game, and decided to go with Monte Carlo Tree Search because the specific game will be original to the project - no good heuristics ...
crass_sandwich's user avatar
0 votes
2 answers
151 views

OOP Tic Tac Toe Game

I have built a project OOP Tic Tac Toe. I am beginner-intermediate developer. Can you tell me what I can improve, what I did wrong and what to look up to? This is my first OOP project. I'm happy that ...
mcccuklev's user avatar
  • 139
7 votes
2 answers
3k views

Tic-Tac-Toe game in C++

My friend is kind of new to coding and he decided to write a console tic-tac-toe game. He then showed me his code and I thought it would be cool to optimize it a bit and rewrite in my own way. I tried ...
Noby's user avatar
  • 115
4 votes
1 answer
272 views

Slot Machine Project

I am familiar with Python but recently I have been trying to solidify my skills as a Python developer. I decided to do a project that would help me build some skills using the fundamentals of the ...
HoneyBadger's user avatar
8 votes
2 answers
1k views

Text based chess game in Python

I have reached a significant milestone since the start of my chess game project. I have implemented all basic functionality. There is no castling, en passant and pawn promotion yet but I have ...
RandomCoder59's user avatar
10 votes
3 answers
3k views

Spin the wheel game

I'm new to Python and coded this spin-the-wheel game where the user can bet on each spin of the wheel and either double their money, 1.5x their money, lose their money or keep it. It all seems to be ...
Oblivion's user avatar
  • 111

1
2 3 4 5
39