Questions tagged [game]
For questions requesting reviews of game development code.
1,936
questions
1
vote
1
answer
73
views
Simple Tic-tac-toe in Python
I am a beginner programmer who coded a simple Tic-tac-toe in Python for practice. Any feedback, especially regarding best practices and tidying up the code, is appreciated.
...
3
votes
1
answer
122
views
Re: C++ 4X Game
This post is regarding the revamp of this post/project I did about 8 months ago. I took a lot of the advice from the suggestions provided (thank you by the way), and fixed the project up, so I'm ...
-3
votes
0
answers
44
views
first snake game [closed]
I've just worked on my first game in C and have a few questions.
how would I make it where my box is nicer?
I'm having issues trying to figure out how to make the snake grow in size when it eats.
...
7
votes
2
answers
18k
views
'Snakes and Ladders' game
I made this game of snakes and ladders for school, and it has to have:
Multiple players
Player Names
Random Dice roll
Snakes and ladders (obviously!)
Subroutines
It is currently 124 lines, ...
2
votes
1
answer
74
views
Casino Number Guessing Game
I have created a casino number guessing game in C++:
...
1
vote
0
answers
57
views
My code.org Game Lab project is running really slowly, how can I optimize the code further?
I'm working on my final project, and it is a game made with Java Script in code.org's Game Lab. The code worked fine, and it was not slow at all, but as I worked on it, it became much slower! The ...
4
votes
1
answer
330
views
Porting xoroshiro1024** from C to C#, and seeding it
I require a PRNG which:
Has repeatable results from a given state.
Is both seeded from and has a state containing a sufficiently large amount of data (somewhere in the region of 700 bits or more) to ...
5
votes
3
answers
2k
views
"Rock Paper Scissors" game
I have created a rock paper scissors game in C++.
...
10
votes
2
answers
1k
views
Implement a Tetris game in JavaScript using HTML5 Canvas
I just wrote a Tetris game and I'd like to ask experienced people for a code review, especially in terms of code efficiency and bad coding habits, and if the code is easy to reason about.
Here is the ...
8
votes
1
answer
9k
views
My own "Cookie Clicker" Game
I tried to make my own Cookie Clicker Game. It's inspired from this game.
Here I just wanted to practice object-oriented programming in JavaScript (and in general) and get experience in game design. ...
5
votes
0
answers
221
views
GUI Tic-Tac-Toe game with six AI players - part 1: the UI
This is a huge project that I have worked on for the past few months, it contains 16 scripts, one of the scripts is used to analyze the other scripts. There are 111004 characters in all the script ...
2
votes
1
answer
52
views
"2048" game in JavaFX
I wrote my first code in Java and I need constructive criticism and code review.
This is an implementation of the well-known "2048" sliding-blocks game.
...
5
votes
1
answer
127
views
Recreated Snake in Rust
This is my first ever program in Rust. I've made it using only the book, the reference, and any documentation about the crates/functions I was using on the official rust lang website.
I have the ...
2
votes
1
answer
104
views
Tic-tac-toe game for Windows console
I am doing C++ for over a year and this is my game I tried making tic-tac-toe. And it's also my first program that uses multiple source files.
main.cpp
...
2
votes
1
answer
670
views
Little CLI game in C++ with random words
the game is quite simple, you have to constantly guess the letters of a hidden word, but has a limited number of wrong attempts. The word you are looking for should be a random word from Wikipedia. I ...
12
votes
2
answers
587
views
Vue - It's the Royal Game of Ur
Background
After learning Kotlin for Advent of Code in December, I started looking into cross-compiling Kotlin for both the JVM and to JavaScript. Then I wrote a game server in Kotlin and also a ...
5
votes
3
answers
9k
views
Solution to the cracker barrel peg game / triangle game
I wrote a small script that finds the solution to the cracker barrel peg game / triangle game.
Gist
...
7
votes
1
answer
261
views
Hacking Minigame
I made the UI for the hacking minigame from the Fallout series. Could I get some feedback on the main Game.js component? It's my first React app.
I'm especially ...
8
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).
...
1
vote
1
answer
181
views
Robot battle game Terminal game code
This is a project for a class and all the requirements are met, I just wanted to do a little more and make this even better. All the changes that I've made are already implemented and I would like to ...
2
votes
2
answers
128
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 ...
2
votes
0
answers
101
views
Lcation of redux "random" state initialization
I'm creating 2048 to practice React/Redux. I've got a game board that appropriately shifts, and follows the game rules (it works).
I'm more concerned with my understanding of handling Redux reducers (...
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 ...
2
votes
1
answer
246
views
Drag-and-drop handler for card game
I'm currently writing a card-game in Unity and the below code handles the player's ability to drag/drop cards onto various sections of the game board. Right now, I have this nagging feeling that as it ...
1
vote
0
answers
39
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 ...
4
votes
1
answer
247
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 ...
1
vote
1
answer
181
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 ...
8
votes
3
answers
4k
views
Python Bulls and Cows
Bulls and Cows is a simple code-breaking game sometimes better known as "Mastermind." The rules are explained here: https://en.wikipedia.org/wiki/Bulls_and_Cows
I would appreciate some feedback on ...
3
votes
1
answer
175
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 ...
6
votes
4
answers
216
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 ...
15
votes
2
answers
4k
views
2048 (game) solver
The code contains an AI function, that searches breadth-first all possible moves and get the score of their grids, a depth of 6 is used which makes at most \$4+4^2+...+4^6\$ computed grids. The ...
6
votes
2
answers
379
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 ...
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, ...
4
votes
1
answer
177
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 ...
4
votes
1
answer
106
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.
...
4
votes
2
answers
184
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 ...
4
votes
1
answer
317
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 ...
4
votes
1
answer
276
views
2D Minecraft - infinite chunk system
I am making a 2d minecraft clone for a hobby.
Here is my code:
2D_MC.py:
...
6
votes
1
answer
335
views
Improvements on Python game?
This is a game I made in Python. While it is not my first, I am not happy with the result. I would like suggestions on ways I can make it better, more user-friendly, and more enjoyable. Also, if ...
0
votes
1
answer
152
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.
...
3
votes
4
answers
210
views
simple Rock, paper, scissors game
I just recently started learning how to program and how to use python and after watching a few courses I made a simple Rock paper scissors game where basically the script randomly chooses Rock, paper ...
7
votes
2
answers
156
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 ...
3
votes
1
answer
81
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 ...
6
votes
1
answer
363
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 - ...
4
votes
1
answer
158
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 ...
6
votes
2
answers
4k
views
Sudoku generator
I managed to create a Sudoku generator but I'll just go ahead and say that it generates 1 out of 500 tries on average. I'd say that's pretty inefficient and I'd like to ask you for advice on ...
7
votes
3
answers
26k
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.
...
7
votes
1
answer
83
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 ...
0
votes
1
answer
95
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 ...
6
votes
1
answer
263
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 ...