We changed our privacy policy. Read more.

Questions tagged [game]

For questions requesting reviews of game development code.

Filter by
Sorted by
Tagged with
-1
votes
2answers
91 views

A simple java game engine

I'm starting an OO Java game engine which is meant to be able to split things easily into multi-core loads. The idea is that a unique (Interface with method GetUID) gets passed in. The Unique can also ...
6
votes
1answer
7k views

Tic Tac Toe in MVC

Do I have basics of MVC and SOLID principles right in this simple 'Tic Tac Toe' game? View.java ...
3
votes
3answers
90 views

Terminal based "Connect 4" game in Python

I started learning Python a few weeks ago and coded this "Connect 4" game. What could I have done better? How efficient is this code and how could I improve on that? ...
4
votes
4answers
763 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 ...
0
votes
0answers
36 views

Conway's Game of Life (Java) [closed]

I've recently become interested in cellular automata, and took a crack at a few of the popular ones including Falling Sand and Conway's Game of Life. I've almost got the later working save a few ...
1
vote
1answer
36 views

Tic Tac Toe game with an adjustable grid size in Tkinter

I've created a full Tic tac toe game in Tkinter that has single and multiplayer modes. The single player mode then has a hard and easy difficulty. The easy difficulty is just choosing a random open ...
2
votes
1answer
47 views

Simple game of Chutes and Ladders

I recently made a new project for Chutes and Ladders (the Hasbro version of Snakes and ladders) and it is located here: https://github.com/vchittar/ChutesAndLadders BoardLogic (implements an interface)...
-1
votes
0answers
32 views

HTML5 canvas spaceship game [closed]

I don't understand why my spaceship movement seems so laggy.. Could it be because of the JS function "setInterval" ? What is the best approach on game performance with HTML5 Canvas? The code ...
5
votes
2answers
90 views

C++ Connect-four game with little AI (Version two)

Here is the improved code ...
4
votes
3answers
127 views

Create a little adventure world

I have just recently picked up coding and am trying to improve my coding. I've written this bit of code to create a little adventure world. I haven't completed the code, everything runs how I want it ...
2
votes
2answers
47 views

Number guessing game in Ruby

I am a newbie in Ruby. I want to learn Ruby and I want to learn clear code in Ruby. I coded a number guessing game but my code is smelling bad. How I can do better code? ...
7
votes
2answers
144 views

2D Maze Game with Monsters

Introduction I've started to learn C programming a bit and wanted to create a simple 2D console game. Let me first introduce you to the game level/map structure: ...
3
votes
2answers
84 views

Simple Blackjack Game in c++

I made a simple BlackJack game and I want to make it as good as possible before I move on to creating a few other games in my "casino" - let me know how I can improve it I added a few things ...
0
votes
0answers
21 views

Class for handling key/mouse inputs

I'm writing an html5 canvas game for the first time. To start with, I decided to make the below class so I can check for inputs every update loop. The class can detect key/mouse down/up events and ...
0
votes
0answers
31 views

Conway's Game of Life written in JavaScript

So I'm staying up for 24 hours watching Le Mans and decided to write something fun. I wrote an implementation of Conway's Game of Life (information here if required). All feedback is welcome (...
3
votes
2answers
134 views

Hangman game with only one word

This is a hangman game. The only word is 'word' and I am not planning on changing this since I am not going to publish this game or anything. If there is any unnecessary/bad code I need to get rid of, ...
5
votes
2answers
83 views

Conway's game of life as Java OO with underlaying array

Well, there are many game of life's already, but after posting an answer on it in C#, I thought I might as well check if I did any better and if there is anything new to learn - there always is. ...
1
vote
0answers
63 views

I'm making a 2D game engine with JAVA Eclipse 2021-06 but it is underperforming in FPS for my NVidia RTX 3070

This is my first Stack Exchange question, so please bare with me. I'm following this tutorial on youtube by The Cherno, Im only up to episode 16 and I have done this on another laptop before and had ...
2
votes
0answers
2k views

Python pyautogui used for a 2D game

I want to post my tiny program here and hope to get feedback improving the performance of my code and understanding Python better. My main issue is the slowness of the program and the corresponding ...
0
votes
0answers
42 views

Unity C# CubeController script (jumping & moving the cube)

I'm kinda new to C# and Unity, coming from PHP/Python background. So I'm curious, if this CubeController script can be considered a bad code. I mean the coding style, performance, & overall Unity ...
0
votes
0answers
41 views

Avoiding cloning references in a Specs system

I'm working on a card game using Amethyst's Specs crate and am fairly new to Rust (therefore I'm learning through the fight with the compiler). My first System is ...
5
votes
1answer
96 views

Python text game. combat system with enemies in the same position

I recently started programming and ran into a problem in the battle algorithm. This piece of code checks if there is someone in the position of the main character. If there is, then the battle begins (...
3
votes
0answers
75 views

A Compile-time templated event system and dispatch manager

Problem I would like to make an efficient, extensible, and potentially asynchronous parallelizable event system using modern features in c++20. My solution I've ...
3
votes
2answers
4k views

Check if a given grid is a valid Sudoku

At CodeFights I found a question about the validity of Sudoku grid. Given a grid, return true if it is valid, return false otherwise. The grid is valid when each row, each column and each 3x3 sub grid ...
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 ...
11
votes
3answers
1k views

My blit function for my own graphics library

Here is a blit function for a graphics library I made. I've built a small graphics library that uses an palette-indexed spritesheet to hold all of the game's sprites. The blit function copies parts of ...
2
votes
1answer
69 views

Terminal python tic-tac-toe game

As someone that started to learn basic python programming, I decided to make a Python tic-tac-toe game for the terminal, to develop my OOP skills. I would like to know if my code has a lot of ...
3
votes
2answers
62 views

Console TicTacToe in C

Would you be so kind as to review my TicTacToe implementation I wrote in C? I wrote this blind (not looking up other implementations). You can find it on Github here. Any input and/or suggestions ...
0
votes
1answer
40 views

Submitting highscore in PHP

So, I am interested, what is the proper way to submit a highsocre (such as of a Pacman game) in PHP? Here is what I tried: ...
17
votes
10answers
3k views

Increase difficulty based on score

What I'm trying to do is very straightforward and easy, but I am wondering whether there is a more elegant solution. Basically I have a game and I want the difficulty to increase the moment the ...
6
votes
1answer
97 views

python wordgame solver in 270 lines

The live version is at my github Lingo is a game where the host secretly picks a 5 letter word, then provides the first letter to the player. The player then guesses a word, and the host gives ...
2
votes
2answers
124 views

Object-oriented poker game

To give a short contextual description: It is a poker game. I plan to add "cards" and a "pot"-object later on and then learn event-driven programming so that I can add a GUI. ...
15
votes
2answers
256 views

UltimateTicTacToe - ActionScript Style!

In an effort to complete this month's code challenge, I've started off with the basics. Below I have for review, a class that I can call to create the square/button a user would click to mark a spot ...
2
votes
1answer
50 views

Python Text-Based Hangman Game

I have just written a hangman game in Python for a school project. It reads in a list of words from a text file, and graphics from another text file. For each word, the program asks keeps asking for ...
4
votes
1answer
88 views

class that handles the rpg game map

I created a class to handle maps in my RPG game, before it became a class this was a collection of functions I created, but I thought it could be used as a class. although this code is working but i ...
2
votes
1answer
38 views

Python trivia game getting questions and answers off a website

Here is my code that I recently made (I am a beginner). I used BeautifulSoup and Requests to get the data of this website. Please read over my code and tell me how to improve it. Thanks. ...
4
votes
1answer
104 views

Snake game in rust

I made a small rust snake game in order to teach myself rust. I would like to know what I am doing well and poorly, and how to improve my rust code Cargo.toml ...
10
votes
5answers
8k views

Python Bingo game that stores card in a dictionary

I am super proud of this python bingo game I wrote. I am posting it here to make get some help reviewing it to make sure I'm using the best practices. This is for a class, and my professor is a ...
9
votes
2answers
908 views

Terminal Typing Game

A few weeks ago, I developed a terminal game that increases your typing speed. The game is all about typing, providing difficulty levels from easy to hard. I feel like this terminal game won't become ...
6
votes
2answers
250 views

Improving C++ Connect-four game with little AI

Here is the code for the game : ...
0
votes
1answer
111 views

A C# hangman game

I made this c# hangman game... I would like to know what you all think about it. This is a pretty basic but still gets the job done let me know what you think. ...
7
votes
3answers
243 views

JavaScript OOD: 2048

I wrote a 2048 game in JavaScript with an object-oriented paradigm. The game board is presented with a two-dimensional array and each tile holds an integer. Here is the implementation: ...
6
votes
1answer
485 views

Death Battle game with Javascript

I have completed this simple death battle game with Javascript. Basically, the game will have 2 characters who will be attacking each other until one dies. That's it. Just wondering, how can I ...
4
votes
1answer
56 views

Hangman Game Efficiency

To put it simply, I'm making a hangman game and it works as it is, it correctly outputs what I want it to, and I have no problem with submitting it now. I only wish to make it more efficient, and I ...
1
vote
1answer
67 views

Console Game "Epic Dungeon"

Made a console game in C++ called "Epic dungeon", which my friend did a year ago in JS. I decided to do it in order to gain experience (in fact, I did it because I would have stopped ...
9
votes
2answers
8k views

A game of NIM (Basic AI strategy)

I tried creating the game of NIM in python. I researched a couple of videos on how to always win at NIM. Eventually, I found a method and i was able to implement it in my code. This is the result... <...
22
votes
2answers
3k views

Dungeon Crawl game for the terminal

I am learning C++ and I attempted to do one exercise I found: Dungeon Crawl. The goal of this game is to reach the treasure by moving your character along the board. The exercise asks not to use ...
7
votes
1answer
144 views

A beginner's first Tic Tac Toe implementation

I've been teaching myself Python and decided to make a Tic Tac Toe game for a bit of practice. Any criticisms or pointers are welcome! ...
4
votes
2answers
81 views

ZX80 game in C++

In order to help with learning C++, I have been re-implementing games from old ZX80 books in C++. Here' the description of one I'm currently working on: You are a starship captain. You have crashed ...

1
2 3 4 5
36