Skip to main content

Questions tagged [game]

For questions requesting reviews of game development code.

Filter by
Sorted by
Tagged with
4 votes
5 answers
874 views

Creating Layout of 2D Board game

I am quite new to c, and I'm trying to get better in it. I want to create a simple snake & ladder game. I achieved the layout of the board that I wanted, but I'm not sure if this is really an ...
Cats's user avatar
  • 101
4 votes
3 answers
185 views

Gomoku game 5 in a row. Javascript simple game Canvas

Gomoku ★★★ (Tic Tac Toe) There are many Gomoku (5 in a row) game projects on the Internet. The scripts of these projects are freely available. Having analyzed them, I created my own game code based on ...
Василий Иванович's user avatar
4 votes
1 answer
243 views

Tic-Tac-Toe Console Game in Java

I recently started learning Java and decided to create a project to practice. I developed a console-based tic-tac-toe game. I also wrote tests for some of the classes, not because they were necessary, ...
Libo's user avatar
  • 75
6 votes
4 answers
165 views

Deck Value Bet-Like Game

I have just gotten into Object Oriented Programming and I've been practicing it through Python. But I think I still haven't clearly grasped how it should be used effectively. I've created a game Using ...
Raphael Irvin's user avatar
4 votes
1 answer
354 views

Tic Tac Toe with only the 3 last moves

I wrote a Tic-Tac-Toe game that unlike the normal TTT only saves the last 3 moves. That means, that the first move will be removed on the 4th move and so on. To not necessarily extend the description ...
tacoshy's user avatar
  • 444
9 votes
7 answers
1k views

Rudimentary black jack game implementation

I started the 100 Days of Code: The Complete Python Bootcamp about a week ago. I finished day 11, and I wrote a rudimentary blackjack game. I'm just looking for some advise on how I did. Am I showing ...
Wazeewa's user avatar
  • 91
3 votes
1 answer
93 views

another first tic-tac-toe game

I made this tic-tac-toe game in c# after learning the language around a week ago. Can somebody tell me if this code is good or bad? ...
sminkle's user avatar
  • 41
6 votes
3 answers
903 views

A chess engine in Java: generating white pawn moves - take II

Intro This post continues the A chess engine in Java: generating white pawn moves. I was advised to choose between efficiency and type safety. Since this is my first attempt at a chess engine, I have ...
coderodde's user avatar
  • 29.1k
9 votes
4 answers
2k views

A chess engine in Java: generating white pawn moves

(This post has now a continuation.) I decided to embark on implementing my own chess engine. The first (and perhaps most demanding) part of that endeavour is generating child states out of a given ...
coderodde's user avatar
  • 29.1k
2 votes
0 answers
34 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&...
cgoates's user avatar
  • 175
2 votes
2 answers
141 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 ...
Amirhossein Rezaei's user avatar
1 vote
0 answers
54 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 ...
coderodde's user avatar
  • 29.1k
3 votes
2 answers
168 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....
bruh's user avatar
  • 31
1 vote
3 answers
80 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 ...
Mike Millar's user avatar
6 votes
2 answers
429 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 ...
Fe2O3's user avatar
  • 1,917
4 votes
1 answer
92 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
  • 29.1k
4 votes
3 answers
277 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
  • 29.1k
8 votes
4 answers
604 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
  • 1,917
6 votes
1 answer
397 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
94 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
866 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
143 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
153 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
  • 4,370
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
127 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,375
3 votes
0 answers
86 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
63 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
  • 1,063
3 votes
2 answers
287 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
179 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
  • 1,063
1 vote
0 answers
57 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
  • 29.1k
-1 votes
1 answer
86 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
337 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
68 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
  • 29.1k
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
91 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.7k
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.7k
5 votes
2 answers
235 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
174 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
181 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
147 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
111 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
117 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
123 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
46 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
235 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
91 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

1
2 3 4 5
40