Skip to main content

Questions tagged [game]

For questions requesting reviews of game development code.

Filter by
Sorted by
Tagged with
2 votes
3 answers
61 views

Dice evaluation in a Yahtzee-type game

I just started using Godot, and I am attempting to build a Yahtzee-type game on my own. I created a function to evaluate the dice/roll and have it working correctly, I believe. I was hoping to get ...
1 vote
0 answers
46 views

Principal Variation Search (PVS) for playing Connect Four in Java

This time, I have an implementation of PVS (Principal Variation Search) algorithm for playing the game of Connect Four. The repository holding the above .java file ...
2 votes
0 answers
20 views

Tic Tac Toe CLI in Clojure

I wrote a command line tic tac toe game in Clojure. I've broken this post into three sections: Feedback Requests, Gameplay, and Code Feedback Requests I'm looking for feedback on: How "idiomatic&...
2 votes
1 answer
55 views

"Element Fusion" game where 2048 meets Chemistry

I've developed "Element Fusion," a PyGame-based game inspired by 2048 but using chemical elements. I'm seeking feedback on: Gameplay mechanics Code structure and efficiency PyGame ...
1 vote
1 answer
56 views

First tic tac toe game. want to see if valid or needs improvement

Just finished my first java class that taught me all the way up to oop and abstract classes. Decided to start some projects over the summer. Started with tic tac toe since it sounded fairly easy to do....
5 votes
2 answers
384 views

Family, felon & fuzz River Crossing challenge

I first saw this challenge when a user posted it to SO about two years ago without a shred of code. The post's plea, "How do I get started?" meant the user's post didn't survive long on that ...
4 votes
1 answer
86 views

Multithreaded Alpha-beta pruning for playing Connect Four in Java

Intro (The entire repository is in GitHub.) This time, I have parallelized the famous Alpha-beta pruning algorithm. The idea is that the parallel algorithm descends in a game tree (at least) 2 levels ...
4 votes
3 answers
268 views

Connect4.java - The Connect Four game against an Alpha-beta pruning -based AI bot

I have this GitHub repository. It implements the command-line version of the Connect Four game. The AI bot is implemented via Alpha-beta pruning. Code ...
8 votes
4 answers
590 views

DIY Sudoku Solver (Windows Console App)

This will be somewhat larger than many Code Review posts. In a recent CR thread, an invitation was extended for me to post my DIY Sudoku solver. For the fun of it, here we are... I'm buzzing with ...
19 votes
2 answers
1k views

Four Tic-Tac-Toe boards using kTurtle

I am trying to learn kTurtle (slightly different from Logo) so that I can help my daughter learn to write code. I have decided that I would write a program that would play Tic-Tac-Toe with a user. ...
19 votes
3 answers
5k views

RPSLS Game in C#

I went with what I know and can use well, not what I know and can't figure the syntax out to make it look good. So please enjoy the code and prepare to school me (probably in the basics) in C# ...
6 votes
1 answer
391 views

Tic Tac Toe Basic C implementation

Is my implementation idiomatic? Does it suffer from any undefined behaviour? Any pointers/tips would be greatly appreciated. Particularly, I think that the winner function could be improved. ...
2 votes
0 answers
176 views

Optimizing Performance of SAT Collisions

I've implemented a Collison Manager using the Separating Axis Theorem (SAT), and I'm looking for suggestions to enhance the performance of the Minimum Translation Vector (MTV) calculation. The ...
7 votes
1 answer
253 views

Text-based tic-tac-toe game in Python

I'm working on a text-based tic-tac-toe game, mostly for fun and because I'm learning programming. I would appreciate any comments you could give me to improve it. Main structure: It uses a ...
1 vote
3 answers
116 views

My first code: Blackjack game

After just learning a bit of Python, I tried coding something myself. I attempted to do a game of Blackjack, which is far from perfect, and still doesn't have some rules a real game has (in my game an ...
4 votes
1 answer
91 views

rock paper scissors game in console

I've made a simple rock paper scissors game using javascript. Any feedback appreciated. This is a first project I've done with almost no help ...
3 votes
3 answers
859 views

Basic python rock papers scissors game (first code)

I'd just appreciate if anyone can suggest some incremental improvements that would help me to think better like a coder. Here is the very basic RPS (rock, paper, scissors). One thing I may next add is ...
2 votes
2 answers
135 views

BlackJack in python

I began creating blackjack in python; however, I'm looking to simulate it, so I'm thinking I'm going to need to optimize it so that I don't just leave my computer running for three hours waiting for ...
1 vote
1 answer
143 views

Dial up some obscure stats for the Chutes and Ladders game

Years ago, I wrote some code in Perl for the Chutes and Ladders game. I re-wrote the code here in Python. The code simulates one player in a game to see how many spins of the dial are needed to win ...
18 votes
3 answers
3k views

A tic-tac-toe game in C

I am (trying) to learn the C programming language for fun with my father's book "The C Programming Language". I tried writing a tic-tac-toe game in C. I have no professional experience, so ...
2 votes
1 answer
122 views

2D tile map game: Calculate room tiles a furniture item was placed at

I'm developing for a 2D tile map game. I'm trying to generate a list of tiles a furniture item has been placed at, also supporting multi tile furniture that cover more than one tile. I've written a ...
2 votes
1 answer
60 views

Text-based tic-tac-toe in bash (continued)

I wrote this two-player tic-tac-toe program in bash. To make a move, you enter a number between 1 and 9 which corresponds to the square: ...
3 votes
1 answer
396 views

OOP Blackjack in Python 3.9.9

I've noticed I'm not the first to post this topic. As a matter of fact, I have taken some inspiration from Victor Nguyen Bao's post to help structure my code. Here's the link to his code: Structured ...
3 votes
0 answers
77 views

Text-Based Multiplayer RPG Engine using Flask & React

As a final project for a software engineering bootcamp, I decided to make a text-based multiplayer RPG game engine. Using Python, Flask, & Flask-SocketIO for the backend and React & TypeScript ...
3 votes
2 answers
285 views

Text-based blackjack in python

This is code for a text-based game of Blackjack. I would also like advice on how can I implement a betting system in this program. For example starting with an amount of chips and choosing how much of ...
12 votes
2 answers
1k views

Space shooter game using pygame

I have made a space shooter game in pygame with over 800 lines of code (including blank lines). The aim of the game is to kill all of the ships in the game. You start with a small spaceship and one ...
6 votes
1 answer
173 views

Text based tic-tac-toe in bash

I wrote this two player tic-tac-toe program in bash. To make a move you enter a number between 0 and 8 which corresponds to the square: 0|1|2 3|4|5 6|7|8 This is ...
0 votes
0 answers
50 views

WikiGameKillerFX.java - a JavaFX GUI program for solving the Wiki Game instances

I have this GitHub repository. In Wiki Game, players agree on random source and target articles, and attempt to navigate from the source to the target using least number of links. If there is a tie, ...
-1 votes
1 answer
74 views

Sine function guessing cognitive app

Please help with improving this application. It is a guessing game, for learning the values of the sine function, and boosting brain power in the process. ...
1 vote
0 answers
65 views

WikiGameKiller.java - a program for solving Wiki game instances

Intro I have this GitHub repository. Basically, it is a command-line utility for searching automatically for shortest link paths in the Wikipedia article graph. The game in question is sometimes ...
2 votes
2 answers
323 views

Minimal AlphaGo algorithm implementation for game 2048, connect4

I'm writing tutorial code to help high school students understand the MuZero algorithm. There are two main requirements for this code. The code needs to be simple and easy for any student to ...
4 votes
1 answer
88 views

Terminal based game: Part 2

Follow up to: Terminal based game Finished up the framework. Still sticking with the X-Term based version. As I want a very simple framework to use for teaching (not this part initially). But my next ...
7 votes
1 answer
1k views

Python Breakout game

I came from C# background with strong OOP approach. I've decided to learn Python and Breakout game is a way to cover the basics of Python. I'll be really glad for any feedback and general opinion ...
6 votes
2 answers
2k views

Terminal based game

Looking to build a terminal based game. I am assuming X-Term like terminal. This means: I can use the X-Term control codes to clear and move around the screen. I can use ...
9 votes
4 answers
2k 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 ...
29 votes
0 answers
1k views

Pacman implemented in OOP VBA

What?, Why? I have been inspired by several other posts on the topic of OOP implementations in VBA to try and create a Pacman clone. I think this task is not all that hard in most languages; but, I ...
1 vote
1 answer
389 views

3x3 bingo game with a user given input

I implemented a bingo game and check for line, bingo or nothing for a given input where I get a 3x3 bingo card and next 15 numbers extracted. I wrote the following functions: ...
5 votes
2 answers
229 views

2048 game in Java

I am a beginner learning Java, and I coded a command line version of the game 2048 for practice. Any feedback, especially regarding best practices, object-oriented principles, and tidying up the code ...
9 votes
2 answers
1k views

Text Game project for IT 140

So this is my first time taking a coding class. It's my second project for my IT140 class and I am making a text based game. This is my code so far. I do have a warning on Pycharm for Shadows name <...
4 votes
0 answers
163 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
2 answers
170 views

Rock, paper, and scissors C++

Could you give me your opinion about this simple rock, paper, and scissors game code and tell me tips to improve this code? ...
3 votes
1 answer
107 views

C++ OpenGL Game Engine

I am currently developing a C++ OpenGL game engine to help myself learn computer graphics and game design later on. However, this project is becoming really big, and I am unsure if I am making the ...
6 votes
1 answer
145 views

Code for a basic dodging game in Python

Can someone review the code for this dodging game I made a while back? I want to see if there are any improvements or optimizations I can make as I am more or less a Python beginner. ...
3 votes
2 answers
114 views

Text based Java game "Battle Arena"

This is my first java program. I'm coming from a python background. This is a text based combat arena game. Are there any ways I could better implement the overall code structure? How might I improve ...
2 votes
2 answers
527 views

Spawning random small cubes in a big invisible cube using Unity C#

My goal was to create a big invisible cube and inside that spawn small random cubes. These small cubes would have: A random position within the big cube. A random colour. A random size. A random ...
14 votes
1 answer
1k views

Text-mode 2048 in Python (using numpy)

Good evening. I am studying mathematics at the moment, so I have little to no formal education in actual computer engineering. However, I am trying my hands at learning Python because I will need lots ...
3 votes
2 answers
120 views

Simple Blackjack game with card art

I have reached a point in my course that I feel I could use some feedback as to how my code looks and hopefully some direction on some best practice methodology going forward. I know I have a long way ...
0 votes
0 answers
43 views

Video Poker with luck modifier

While grinding for coins on the GTA San Andreas casino poker machines I started to wonder how exactly one might implement a luck modifier to a video poker game without it being completely obvious to ...
3 votes
1 answer
125 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. ...
2 votes
3 answers
143 views

Othello (Reversi) in C++17 and CMake

Othello is a two-player strategy game typically played over the board. I implemented Othello in C++17 with CMake as the build system. I'm looking for feedback on cleanness, readability, and ...

1
2 3 4 5
40