Questions tagged [game]

For questions requesting reviews of game development code.

Filter by
Sorted by
Tagged with
3
votes
1answer
44 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
296 views

I made basketball program using Java that runs on console

I made a simple console basketball game using Java. ...
3
votes
2answers
75 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
281 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
224 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 ...
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
136 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 ...
1
vote
1answer
46 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 ...
4
votes
4answers
799 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 ...
5
votes
1answer
328 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
0answers
51 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 ...
5
votes
1answer
97 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 ...
10
votes
1answer
215 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,...
2
votes
1answer
83 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 ...
6
votes
1answer
94 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 ...
1
vote
2answers
156 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. ...
2
votes
1answer
138 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). ...
3
votes
1answer
86 views

Learning javascript by developing a simple game

I am learning javascript and have developed a car game using: HTML Canvas javascript The repository link is: https://github.com/lazycoder-007/car_race_html_javascript_game The code is given below: ...
9
votes
2answers
193 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 ...
5
votes
2answers
89 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? ...
2
votes
0answers
103 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 ...
1
vote
2answers
57 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: ...
5
votes
1answer
387 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. ...
4
votes
1answer
501 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. ...
7
votes
2answers
185 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. ...
8
votes
3answers
146 views

Command line based game with players and monsters

I am coding a command line based game with 1 player and 2 monsters. Monster attacks player at specified intervals and player takes input from standard input to attack specific monster. I would like ...
6
votes
0answers
70 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 ...
8
votes
2answers
119 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 ...
3
votes
1answer
91 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 ...
4
votes
1answer
307 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 ...
2
votes
1answer
266 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
175 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-...
3
votes
1answer
2k 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. ...
2
votes
2answers
81 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 ...
3
votes
1answer
142 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
43 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
348 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
75 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 ...
0
votes
1answer
54 views

Python Alien Blitz Game

Please review my Python Alien Blitz Game code. There are several points I'm keen to hear about. I used globals. Was that an evil choice given the context? In the past when I've tried to refactor ...
7
votes
3answers
435 views

I made a guess the number game in Python

I just started programming a week ago. Online tutorials aren't my thing, so I decided to just start projects and learn what I need for the project. My first project is a guess the number game. The ...
8
votes
2answers
219 views

Tron game on Wii / GameCube

I implemented the following Tron cycle game so that it can be run on GameCube / Wii devices (quarantine...). Indeed, there exist many tools (I rely on devkitPPC) and I thought a Tron game would be an ...
3
votes
1answer
96 views

Tic Tac Toe in C++ (console version)

I have made a 2 player Tic Tac Toe game in C++. I have put in some error checking also (like if the players enters an invalid position). The code is working absolutely fine. This is what my program ...
4
votes
1answer
233 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 ...
5
votes
1answer
61 views

Python - CLI Minesweeper

I've written the following single-script minesweeper console game and would appreciate your feedback! What I'm interested in: Enums: I think the usage of Enums could be better. It feels weird that I ...
2
votes
0answers
119 views

Flashcard app in Golang

Most of my development experience is in the .NET world. I started learning Golang again a few months ago, and decided to build a super simple flashcard app. This project was mainly to get used to ...
3
votes
0answers
79 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 ...
3
votes
2answers
436 views

Python Shirtori Game Exercise

I'm looking to improve my code writing in general by peer review. I've followed the following exercise: https://edabit.com/challenge/dLnZLi8FjaK6qKcvv. The exercise is to create an English version ...
6
votes
1answer
264 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 <...
1
vote
0answers
37 views

Questions about class structure, inheritance, etc -- Simple Rougelike in JS

I have built a small roguelike in JS using minimal frameworks (Tho I am using one library for things like FOV, map generation and a few other small things) This is my first 'real' project that was ...

1 2 3
4
5
36