People who code: we want your input. Take the Survey

Questions tagged [game]

For questions requesting reviews of game development code.

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

Multithreaded console-based monster battle with earliest-deadline-first scheduler

In working on this answer it occurred to me that it might be interesting to further expand the idea. The game This is an extremely simple (and boring!) text-based game that creates a few monsters ...
8
votes
4answers
1k views

Country Guessing Game

I'm learning React and I made this country guessing game. What improvements/suggestions do you have for it? Preview it here ...
3
votes
1answer
43 views

Reduce an X/Y Value to an Index In a 1D array and Return the Array Value

Initially, this is not an attempt at early optimization, though it's thoroughly possible I'm looking in the wrong place :). The following function returns a height value for aliased columns in a kind ...
4
votes
2answers
258 views

I made basketball program using Java that runs on console

I made a simple console basketball game using Java. ...
5
votes
2answers
192 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 ...
3
votes
1answer
77 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 ...
4
votes
4answers
619 views

Short code in Python Rock Paper Scissors

I am studying and practicing Python; this is my Rock-Paper-Scissors game I've built from scratch. I saw this task is for beginners. When writing this in all the examples I saw dozens of lines of code ...
3
votes
2answers
64 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
215 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 ...
4
votes
3answers
4k views

Game of Life (Java)

This is a simple implementation of Conway's Game of Life in Java. The algorithm I use is inefficient however. Every Cell's neighbors (alive or dead) are checked on every iteration. ...
12
votes
1answer
2k views

I made Tic Tac Toe in C

I made this Tic Tac Toe game in C. It works but I thinks it could be programmed better. You have the option to play alone or between two players. It also lets the player select if he uses 'X' or 'O'. ...
3
votes
2answers
108 views

Tic-Tac-Toe in Java

I am currently learning Java; I could really use some help from more experienced programmers. How can I clean up my Tic-Tac-Toe code? What mistakes have I made? Can I use more exception handling? I ...
5
votes
1answer
269 views

Battleship Game Field Generator

Summary I have been playing with Rust for a couple of days, so I thought I would implement something rather simple. This code generates a random variation of board for well-known game of Battleship. ...
1
vote
1answer
45 views

Given a Tic-Tac-Toe gamestate return all wins as text

In a game of Tic-TacToe given a gamestate: game_board = [ [1, 0, 1], [0, 1, 0], [0, 1, 0] ] I have written the following piece of ...
5
votes
2answers
87 views

CLI Tic-Tac-Toe in python

Is there any way I could make my Tic-Tac-Toe board more aesthetically pleasing? Is there anything else I can improve besides the look of the board? ...
7
votes
2answers
10k views

Roulette game in C++

I'm kind of new to C++ and was just wondering if anyone could give me tips on how I could make my code more efficient (I added some comments to the code to help you understand it better). Is it a ...
10
votes
1answer
200 views

Battle City (Tank) replica

I'm learning JS and Canvas. A friend of mine gave me the task to create a Battle City replica. I've already managed to make the map and the player to move. Nothing fancy just some squares with a color,...
1
vote
0answers
49 views

ReadAsync: Continuously reads stream and spits out Packets and Fill incomplete Packets

I have difficulties when sometimes a game client sends a list of packet in the same buffer, where it is split before processing. The biggest problem is when any packets don't come complete. For ...
6
votes
1answer
92 views

A little Python roguelike with mostly using standard libraries

So, I made this in order to practice my Python OOP and algorithms skills, and refactored it a bit after a few months of s tale. May anybody review it in a PR please? Want to see the flaws that could ...
2
votes
1answer
76 views

Rock, Paper Scissors Game

After spending a few months learning python I decided to build a basic Rock Paper Scissors game. Basic construct of the game: Allows you to pick best of 3,5,7 Allows you to put in the name Computer ...
1
vote
2answers
137 views

Made an Object pool in C++

I'm making a Minecraft clone and have made an Object Pool. Looking for some advice on how I have implemented it. Uses m_availableObjects as a O(1) way of searching for the next available object. ...
3
votes
3answers
6k views

JavaFX Tic-Tac-Toe Game

I programmed a Tic Tac Toe game using JavaFX, and I'm looking for a code review of it to improve my skills and practices in Java. It would highly be appreciated if you reviewers emphasize on these ...
2
votes
1answer
116 views

How could I modularize this poker card game in rust?

I'm learning rust by creating a simple card game program, with the usual stuff, ranks, suits etc. Currently I only implemented the card generation and a simple render function (not for future use). ...
9
votes
2answers
190 views

Text-adventure game cleanup

I'm working on a text adventure game for a while now, learning more about user input etc. I have a feeling there is something fundamentally wrong about my code, it seems too repetitive. The use of ...
6
votes
1answer
225 views

Vue component for Game Die (dice)

As part of learning Vue and Vue Test Utils I develop some simple games. I made a simple version of craps. Because in many other games a die (or dice) is used, I decided to create a reusable component <...
2
votes
0answers
98 views

Text-Based Pokemon Battling Simulator

How can I improve the visual appeal Of My text-based Pokemon battling simulator? I created a Pokemon battling simulator in C++. I showed it to my mom, dad, and brother, and they didn't say anything ...
4
votes
1answer
347 views

Battleship Model

The following is some code for a Battleship game I'm working on. The plan is to create a multiplayer game using Xamarin Forms. This is just the model code, i.e. what the GUI will be interacting with ...
1
vote
2answers
56 views

Building a Building - Is the building clean?

I'm writing a small game and I use Kotlin for that. I want to model my buildings with the following class: ...
8
votes
3answers
293 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 ...
7
votes
2answers
175 views

Rust Novice's Tic Tac Toe

Introduction I am a Rust novice. So far, I have finished reading the first 15 chapters of The Rust Programming Language (a.k.a. the book). Here's my first big Rust project — Tic Tac Toe. ...
14
votes
1answer
10k views

Space Shooter made using Pygame

This is my first game made using Pygame of about 550 lines of code. Advice and suggestions are more than welcome. ...
6
votes
0answers
69 views

Game event loop for multi-threaded application

My take on this problem for a hobby project. I have an event loop that advances game state and processes user input. Rendering is no concern of this event loop, and is intended to run on a separate ...
3
votes
1answer
392 views

Text-based Snakes and Ladders

I have made a text-based Snakes and Ladders game in Java with only simple concepts like Scanner and Arrays. I don't know how to use different methods or to use inheritance to make the code shorter. ...
5
votes
1answer
353 views

Rock, paper, scissors in Python 3

I am new to Python (and to programming). I tried to implement this game in Python and took some help from the code reviews of similar questions posted on this website. ...
8
votes
2answers
116 views

Remaking a 1998 RTS game in C++

I am remaking a very obscure old game called Rival Realms. The full source is here if you're interested. I come from a Java background so C++ is still fairly new to me. I recently performed a ...
1
vote
0answers
3k views

Card Game using pygame module

I implemented a card game using pygame, the game is a game of war and using png files that I made in Microsoft paint. I tried to keep the object classes as separated from the pygame module as possible....
2
votes
2answers
68 views

Continually refresh game data using AJAX

I've been working with JavaScript and AJAX a lot in the past, and now I'm moving towards the backend and working with databases more. I want to update my game data in as close to real time as possible ...
4
votes
1answer
256 views

Wordgame in Python

I'd like feedback please as to improvements which could be made to make this more 'pythonic' in its approach/structure. Any constructive feedback welcome. The below is a game which takes a single ...
3
votes
1answer
81 views

Static Arrays and Variables (JavaScript)

I would like to know if this code of the database for my Pokemon clone game follows general practices in syntax and general readability. I feel like I could cut down on my comment usage, and place ...
2
votes
1answer
196 views

Snake game in terminal, written in Python

I've recently wrote snake game. I Wanted to keep it in pure terminal, without libraries like pygame, tkinter or curses. It works just fine, but i know that the code might be improved. I'm rather ...
1
vote
0answers
45 views

Rock Paper Scissors Python Revision [closed]

I recently programmed a decently-sized program in Python, since I have just started really getting a feel for it. I am currently learning about dictionaries, so I didn't include any, but next time I ...
4
votes
1answer
135 views

Design a simple card game in JavaScript

I wrote a simple card game in JavaScript and I wonder if anyone could give me some advice and make some improvements on my code. Here is the demo that I build: https://codesandbox.io/s/cardgame-...
7
votes
1answer
10k views

Single-player Agario game

I made an Agario single player version (soon to become a multi player one using socket). What can be some improvements? Controller: ...
3
votes
1answer
1k views

Chrome Dinosaur Game in C++ Applying OOPs

I am gaining a lot of interest in Game development. I created Chrome Dinosaur game in C++. I have not paid much attention to UI/UX, just trying to see if i can apply some OOPs in game programming. ...
3
votes
1answer
119 views

(Python) Random Number Guessing Game

I'm a beginner currently learning Python. I made a simple program, a random number guessing game, to apply in practice what I have already learned (not much) and hopefully be able to get a better ...
3
votes
0answers
41 views

Custom allocator for improved cache locality and fast iteration in C++

I am writing a custom allocator for my educational game engine project where I need to iterate through a collection of components(similar to Unity3D) every frame. There are game objects and every game ...
2
votes
1answer
305 views

Feedback on a Small Trivia Game in C#

I wanted to get some feedback concerning the program. It's console based and in C#. If I should try to add constraints like making sure only the 4 questions shown are able to be typed in and nothing ...
1
vote
2answers
70 views

Monte Carlo Simulation of “DNA Mutation” Game Mechanic

The game Space Station 13 (on the Paradise Station codebase) contains a DNA mechanic. Every carbon-based lifeform with DNA has 55 "blocks" that can be altered in a DNA Modifier, giving the mob ...
4
votes
1answer
199 views

C# MineSweeper Game using winform

I designed a game with trying to use solid principles. What changes should I do for making program more extensible, readable. Thanks in advance. Cell class ...
3
votes
0answers
73 views

HSL Guessing Game in Svelte

The objective of the game is to guess the hue, saturation, and lightness values of a given color swatch across ten rounds. https://github.com/shreyasminocha/guess-the-hsl https://guess-the-hsl.now.sh ...

1 2 3
4
5
36