Questions tagged [game]

For questions requesting reviews of game development code.

Filter by
Sorted by
Tagged with
5
votes
2answers
188 views

App initialisation and simple game loop

Summary I come from a Java background but I am trying to make a game in C++. This is my attempt at a state management system, which should allow me to easily switch between "states" (menu, ...
4
votes
1answer
61 views

Would anyone like to view my command line hangman game?

Id like feedback on my code. Specifically the parts where i use graphemes. I use cloned strings because the grapheme functions eat my strings. But feel free to comment about anything else that looks ...
3
votes
1answer
292 views

Python Command Line Rock Paper Scissors

I'm looking for tips on how to clean up this code and/or make it more efficient. Keep in mind I am a seriously new programmer and if it is too advanced it's likely to go over my head. ...
3
votes
2answers
89 views

A simple Snakes and Ladders implementation in Java

I created a pretty straight forward snakes and ladders implementation in Java just for the heck of it. The program can be summed up as- Object of Board contains an array of Type Tile to represent the ...
0
votes
0answers
44 views

Python Tic-Tac-Toe

I made a very primitive Tic-Tac-Toe using Python and I would like a grade on how well I coded the game. What code was there that could've been simpler or more efficient? And any advice you can give me?...
-4
votes
1answer
62 views
5
votes
1answer
47 views

A* and ALT pathfinding in C tips

I adding some pathfinding to a game I'm working on. It primarily used A* with as suggested in the pathfinding articles at reb blob games. It works, but isn't very fast. It is a square grid map that (...
12
votes
4answers
2k views

Python Risk game

I solved a Risk game question (http://www.pyschools.com/quiz/view_question/s3-q12) in two ways, but as I am currently learning Python, I'm just wondering how to rate my methods of solving this ...
1
vote
1answer
47 views

Ruby Tic-Tac-Toe two-player

As a preface, I'm very new to coding (self-learning) so if you notice any bad habits please let me know, it would be GREATLY appreciated. I'm self-learning Ruby so I don't really have a frame of ...
1
vote
2answers
71 views

Ruby Hangman Game

I'm still new to coding and self-taught. If anyone could take a look at my code for my Ruby Hangman game and give any tips or advice whatsoever, it would be greatly appreciated. I'm trying to improve! ...
6
votes
1answer
142 views

Python: Astar algorithm implementation

I have implemented Astar algorithm for a problem on an online judge relating to maze given start and end positions along with a grid representing the maze. I output the length of the path along with ...
2
votes
2answers
68 views

Ruby Mastermind game project with AI

I'm self-learning and pretty new to coding and created a Mastermind game in Ruby. Any general feedback or advice whatsoever would be greatly appreciated. The game is completely functional right now, ...
3
votes
1answer
48 views

Creating a simple event message passing system in C# for a rudimentary 2d sprite game

I am currently experimenting a bit with C# and as a way of learning I am making a very simple 2D game (asteroids-ish). I am using the monogame framework and the general plan of attack was to have all ...
9
votes
3answers
9k views

Text-based adventure game [closed]

I'm new to programming, and I would like to know if this is the right way to layout code. If anyone has any tips, please share them. ...
8
votes
1answer
87 views

My first game - Arkanoid

I'm new to java and I have just finished my very first game - Arkanoid. I would appreciate, if anyone could look at this and tell me some advice and tips how can I optimize my code. Thank you. :) I ...
4
votes
1answer
69 views

Snake game using C++ and FLTK

Description I've written the snake game using C++ and FLTK. For simplifying the use of FLTK, a built-up library written by Bjarne Stroustrup was used. Bellow located main parts of the code written by ...
2
votes
1answer
75 views

Pong and Breakout games

So I have made 2 games without any internet when on vacation. I have used turtle because I did not install pygame. I was wondering how I could improve my games. Here is the code: Pong: ...
2
votes
1answer
75 views

Python Blackjack

A simple terminal blackjack game written in Python. Follows basic blackjack rules: Blackjack pays 3 to 1, Hit, Stick, Double Down and Splits Dealer hits until 17 Keeps track of some data Wrote it for ...
10
votes
1answer
260 views

A Python Blackjack terminal based game

I am looking for some feedback on my blackjack Python code. Any feedback is much appreciated. Docstring, code etc. Other than that, I need to test it, and I am not sure how to make this code more ...
8
votes
3answers
1k views

C# Blackjack prototype

I would like some feedback on my code, I'm new to coding with C# but I do have some knowledge on Lua and Python. Is there anything that I need to change/clean up to make it more simplified? ...
2
votes
0answers
76 views

Python code for UNO Game

It's my first time here, so please accept my apologies in advance if something is wrong with my approach to asking. I've been learning Python for a couple of months and I decided to have a go at a ...
4
votes
1answer
82 views

Basic java Tetris game

I'm learning really basic java at school but I learn on my own at home. I've had some experience with simple swing games, but this one exceeds all. I want any opinion and advice someone may contribute....
4
votes
0answers
54 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: Uses a Board class ...
2
votes
1answer
41 views

Unity surface shader to blend between adjacent tiles

I'm experimenting in Unity with a tile-based game with crisp 32x32 tile textures and pixel perfect camera. I did not like the results coming from Unity's default ...
7
votes
0answers
56 views

A* using a Priority Queue

I've implemented an A* with a priority queue. I am not getting any performance issues in this little game that I am making but it would be interesting to know how to improve this. I am doing a few o(n)...
8
votes
1answer
1k views

League of Legends Summoner Analysis

This program will ask for user to insert summoner and base from the last 20 games of said summoner, it will give avg stats and see if good or not by wins in last 20 games(a simple grading system). <...
4
votes
1answer
170 views

Snake game in C++ with SFML

I started learning programming about a year ago, starting with Python. Half a year ago, I moved onto C++ and this is my first large project with that language. Have I understood the basics of the ...
5
votes
2answers
266 views

Object oriented approach for snake game in C++

I started to code in c++ recently and my goal is to develop games using c++. After learning basics I tried to implement my own version of snake console based game in c++ with the help of some online ...
8
votes
1answer
5k views

Zork-style text-based game engine Python3

Over the last couple of months I've been working on a zork-style text based adventure game to kind of crash-course teach myself Python. I've gotten to the point in it where I'm fairly proud of what I'...
8
votes
4answers
291 views

Python text-based Tic Tac Toe

I created a simple text-based Tic Tac Toe game in Python using OOP. Currently the computer moves are completely random - I plan to add some sort of algorithm later (no idea how to do that yet though) ...
4
votes
1answer
45 views

A library of 2D Shapes with functions for their intersections

The goal was as much code reuse as I could get. Shooting for a pure-function-y style. Would love any feedback on general architecture, adherence to standard practice and usability - as well as ideas ...
4
votes
2answers
69 views

Three Card Monte game using Java

I made a Three Monte Card game using Java Problem: This is the original "ball and cups" game where you try to find out which cup has the ball under it. You may play with three cups and a ...
2
votes
0answers
77 views

Strip Poker game

I've made a short simple strip poker game. It follows the traditional rules of poker (4 of a kind>flush>straight,etc.), one round of betting followed by an option to change cards, then another ...
3
votes
1answer
59 views

An emotion recognition test I designed using Pygame

for my dissertation (in psychology) I created an emotion recognition test that displays an image of a face displaying a certain emotion for a set time, then allows participants to press a button ...
5
votes
1answer
111 views

Hacking Minigame

I made the UI for the hacking minigame from the Fallout series. Could I get some feedback on the main Game.js component? It's my first React app. I'm especially ...
4
votes
1answer
87 views

Rock, Paper, Scissor - Game

This is my first ever created game. I been slowly but continuously learning PHP for the past 2 months and just last night I thought that I might be able to create a simple and very basic game. Due to ...
6
votes
3answers
79 views

Determine the height of a Tetris game's board after a sequence of moves

I have written a program that will determine the height of a Tetris board after a sequence of moves are made. These inputs are in the form of a comma-delimited list, and look like ...
12
votes
1answer
11k views

Battleship game in C

Goal: Create a simple battleship game to test what I've learned so far. ...
2
votes
1answer
43 views

Google Maps marker management for games

Is there a better way to design this code? I have read that too many function parameters is a sign of poorly design code, and would love some feedback on this code. The functions Google Maps markers ...
8
votes
3answers
121 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
1answer
76 views

Vampiric text-based adventure game

Here is my vampire based text adventure game. I recently started learning Python and Googled for some good projects to practice with. I wrote all this code myself after checking out some examples on ...
3
votes
0answers
45 views

Lua Datastore Code to be used by beginners

Context: This code is going to be used to demonstrate how to use Datastores and pcall with lua on Roblox. What does the code do and what are you not satisfied with? I feel like it's a bit too wafelly ...
5
votes
1answer
71 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
755 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
39 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
96 views

I made basketball program using Java that runs on console

I made a simple console basketball game using Java. ...
5
votes
2answers
73 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
73 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
212 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 ...
2
votes
2answers
45 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
2 3 4 5
34