Skip to main content

Questions tagged [game]

For questions requesting reviews of game development code.

Filter by
Sorted by
Tagged with
4 votes
1 answer
78 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 ...
coderodde's user avatar
  • 28.7k
4 votes
3 answers
261 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 ...
coderodde's user avatar
  • 28.7k
8 votes
4 answers
586 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 ...
Fe2O3's user avatar
  • 808
6 votes
1 answer
390 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. ...
wed1may's user avatar
  • 195
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 ...
user24687626's user avatar
3 votes
3 answers
857 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 ...
Mah Neh's user avatar
  • 79
2 votes
2 answers
132 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 ...
Joseph Beegle's user avatar
1 vote
1 answer
142 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 ...
toolic's user avatar
  • 3,626
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 ...
Uriel's user avatar
  • 183
2 votes
1 answer
121 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 ...
Josh Hallow's user avatar
  • 1,345
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 ...
Thomas Makurat's user avatar
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: ...
sbottingota's user avatar
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 ...
vaun's user avatar
  • 31
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 ...
coder's user avatar
  • 121
6 votes
1 answer
172 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 ...
sbottingota's user avatar
0 votes
0 answers
49 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, ...
coderodde's user avatar
  • 28.7k
-1 votes
1 answer
73 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. ...
Attila Vajda's user avatar
2 votes
2 answers
322 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 ...
user281935's user avatar
1 vote
0 answers
64 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 ...
coderodde's user avatar
  • 28.7k
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 ...
NeverDoomedEnough's user avatar
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 ...
Loki Astari's user avatar
  • 95.3k
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 ...
Loki Astari's user avatar
  • 95.3k
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 ...
smwt's user avatar
  • 187
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 <...
DKozzy's user avatar
  • 91
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? ...
salah salah's user avatar
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 ...
Mark Vaaz's user avatar
6 votes
1 answer
144 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. ...
Baba20's user avatar
  • 97
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 ...
kiru's user avatar
  • 31
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 ...
spaghetticode's user avatar
3 votes
2 answers
119 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 ...
ChucktheHeathen's user avatar
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 ...
francescoriccardocrescenzi's user avatar
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 ...
TorbenPutkonen's user avatar
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 ...
aadithyaa's user avatar
3 votes
1 answer
232 views

Simple blackjack program in Java

I wrote this blackjack game for my APCSA class (already submitted) and was wondering if anyone had feedback on what parts of it are improperly written. My main concern is the fact that I am printing ...
nohgo's user avatar
  • 31
4 votes
0 answers
90 views

Complete html5 platform game as a snippet

I made a complete little platformer game as a code snippet. The goal is to try to keep jumping on the enemies without touching the ground to increase score. I used Tad's Basic Game Objects, an open ...
mrall's user avatar
  • 41
3 votes
1 answer
48 views

Logger with a Core and Client side

This logger is for a game engine I'm writing it has a core side which is the game itself and a client side which is the engine. The architecture of the code I feel like is messy it has the main log ...
rrandel's user avatar
  • 55
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. ...
smwt's user avatar
  • 187
3 votes
3 answers
180 views

Casino Number Guessing Game

I have created a casino number guessing game in C++: ...
kit.kat.code's user avatar
2 votes
1 answer
116 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 ...
Renier Jr.'s user avatar
3 votes
1 answer
196 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 ...
Selisine's user avatar
5 votes
3 answers
2k views

"Rock Paper Scissors" game

I have created a rock paper scissors game in C++. ...
kit.kat.code's user avatar
5 votes
0 answers
252 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 ...
Ξένη Γήινος's user avatar
3 votes
1 answer
117 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. ...
hathor's user avatar
  • 31
5 votes
1 answer
155 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 ...
teoscuraa's user avatar
4 votes
1 answer
358 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 ...
Pikanchion's user avatar
2 votes
1 answer
133 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 ...
NikolaTeslaPaga's user avatar
2 votes
1 answer
692 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 ...
Tobias Grothe's user avatar
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). ...
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
0 votes
0 answers
53 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

1
2 3 4 5
40