Questions tagged [game]

For questions requesting reviews of game development code.

Filter by
Sorted by
Tagged with
37 votes
2 answers
8k views

Weekend Challenge - Poker Hand Evaluation

Weekend Challenge #2 - Poker Hand Evaluation Very early I decided to support the usage of wild jokers, even though I knew that this was going to lead to trouble more work. I also wanted to support ...
Simon Forsberg's user avatar
20 votes
3 answers
3k views

Recursive and flexible approach to Tic-Tac-Toe

Description This is my code for the Weekend Challenge Reboot - Tic Tac Toe Ultimate. The game can be played here: http://www.zomis.net/ttt (along with some other variations that are also use the ...
Simon Forsberg's user avatar
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# ...
Malachi's user avatar
  • 28.6k
12 votes
1 answer
329 views

Board Evaluator for Bejeweled Clone

I've been prototyping a Match 3 game (Bejeweled clone) because I have an interesting concept for one, and because it is good practice. One key aspect of my version is that the matches must contain ...
bazola's user avatar
  • 8,579
7 votes
3 answers
503 views

RPSLS game revisited. Is my design better than previous attempts?

This question is a follow up to these questions: RPSLS Game in C# Ensuring user input is an integer in a range RPSLS is less messy now, but is it clean? Right now I have a couple of ideas in the ...
Malachi's user avatar
  • 28.6k
6 votes
1 answer
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 ...
apex39's user avatar
  • 322
5 votes
1 answer
134 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 ...
Edward's user avatar
  • 65.3k
5 votes
1 answer
240 views

Android game inspired by Space Invaders and Moon Patrol

I'm creating a mini game for Android inspired by space invaders and Moon Patrol. I have completed the important part except for collision detection. Before I do collision detection I want to clean the ...
Niklas Rosencrantz's user avatar
43 votes
2 answers
471k views

Snake game in C++

This is my version of the Snake game, written in C++. How could it be improved, and what general advice would be useful for future projects? ...
Funky's user avatar
  • 950
43 votes
4 answers
6k views

Rock-Paper-Scissors-Lizard-Spock Challenge

"Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors decapitate lizard, lizard eats paper, paper ...
Mathieu Guindon's user avatar
42 votes
5 answers
3k views

Regularity in the "Rusty Towel of Mutual understanding"

I have the following Java class: ...
Etheryte's user avatar
  • 654
21 votes
3 answers
2k views

How to Train Your Dragon

I started out practicing on implementing the builder pattern and somehow ended it up with this 2 hours later. It isn't really much, but it works and I'm hoping review should bring about a lot of ...
Legato's user avatar
  • 9,819
19 votes
3 answers
14k views

TicTacToe logic in Java

I'm currently studying Java by myself. The book I'm using (while very good) lacks feedback (obviously). While trying to write this program, I found myself solving most of the problems I've ...
Tom's user avatar
  • 293
18 votes
2 answers
4k views

Rock-Paper-Scissors-Lizard-Spock challenge in C++

Here's my take at the Rock-Paper-Scissors-Lizard-Spock challenge. The outcomes are as follows: Scissors cuts paper paper covers rock rock crushes lizard lizard poisons Spock Spock ...
Jamal's user avatar
  • 34.9k
16 votes
1 answer
2k views

Hangman game logicistics and cleanliness

I recently started working on my code's cleanliness/logistics and would appreciate it if you could give me some tips on how to improve certain things. Here's a simple console Hangman game I've made: ...
user902934's user avatar
16 votes
1 answer
2k views

Amateur RPG Fun

I am looking for this code to look neater, and if possible, less bulky. I am new to def and to dictionaries, so I think throwing a few of those in here could ...
Amateur Programer's user avatar
15 votes
3 answers
2k views

Trading Card Game's Hand class and tests

As part of a Trading Card Game, I have created a Hand that will need to hold all cards that a player currently has in his hand. The code is built using Java 8. The ...
skiwi's user avatar
  • 10.6k
13 votes
1 answer
19k views

Command-line noughts and crosses

I've just got a Raspberry Pi, so I thought I'd try my hand at some Python. This is my first ever Python program (hurrah!). It's a very simple command-line implementation of noughts and crosses. The ...
Tharwen's user avatar
  • 295
13 votes
4 answers
51k views

Text-based RPG game using classes

I am studying for a degree in "Bachelor of Engineering in Information and Communication Technologies." I am currently on vacation, just after we started learning C++ at the end of the semester. I ...
Sumsar1812's user avatar
12 votes
3 answers
547 views

RPSLS is less messy now, but is it clean?

This is a follow up to the following questions: RPSLS Game in C# Ensuring user input is an integer in a range I haven't made my way to DecideWinner() yet, but ...
Malachi's user avatar
  • 28.6k
12 votes
1 answer
478 views

Multiplayer bowling in Ruby, with variable skill

This is a multiplayer bowling simulator in Ruby. It allows for variable skill levels, and produces weighted random results for each roll based on those skill settings. The methods are grouped in four ...
a2bfay's user avatar
  • 215
11 votes
1 answer
558 views

Ultimatoe — 1. GUI and general game interfaces

For the community challenge, I wrote ultimatoe. For me, the most interesting part is clearly the AI, but what I did so far is just a stupid Monte Carlo tree search, which isn't ready for a review yet (...
maaartinus's user avatar
  • 13.5k
11 votes
2 answers
3k views

Rock Paper Scissors Lizard Spock as a code-style and challenge

The following is a program that lets a Human play "Rock Paper Scissors Lizard Spock" against the computer... (almost playable at: http://ideone.com/EBDlga) Note I have posted a follow-up question ...
rolfl's user avatar
  • 97.3k
11 votes
2 answers
2k views

Rock-Paper-Scissors-Lizard-Spock Challenge, take 2

This post is following-up on Rock-Paper-Scissors-Lizard-Spock Challenge I had a gut feeling that I was somehow abusing IComparable<T>, @svick's answer ...
Mathieu Guindon's user avatar
11 votes
2 answers
38k views

Text-based Tetris game

How can I improve this game? ...
MORTAL's user avatar
  • 3,278
10 votes
3 answers
841 views

Lvl 1 upgradeable attributes

I've built the groundwork for an attributes (as in Strength, Intelligence, not as in DebuggerHidden, TestMethod) framework for ...
Nick Udell's user avatar
  • 5,197
10 votes
2 answers
2k views

Tic Tac Towards FX

I'm planning on taking on this community challenge. However, before my tics get tactical, I'd appreciate some feedback on the simpler implementation. Screenshots: Factoring in all the logic/edge ...
Legato's user avatar
  • 9,819
9 votes
3 answers
39k views

Text-based Blackjack game in Python

I am new to programming in Python and wrote a simple Blackjack project. I am looking for experienced peers to provide a high level code review about the overall design patterns and proper usages. The ...
Rich's user avatar
  • 93
9 votes
1 answer
494 views

Multiplayer bowling in Ruby (follow-up: injection, single responsibility)

This is a multiplayer bowling simulator in Ruby. It allows for variable skill levels, and produces weighted random results for each player's rolls based on those skill settings. This is a complete ...
a2bfay's user avatar
  • 215
9 votes
0 answers
534 views

Hunt the Wumpus GUI (FLTK)

I used the code from the text based hunt the wumpus game discussed here: Text based game “Hunt the Wumpus” Version 3 to create a gui Version based on excercises from PPP by Stroustrup. For the GUI i ...
Sandro4912's user avatar
  • 3,046
9 votes
1 answer
4k views

Pong with Pygame

Just looking for some pointers on how I could improve the code. This is my first game ever and python is my first language so it's bit messy but I'll be happy to explain stuff if needed. I'm kinda ...
bzrr's user avatar
  • 209
8 votes
2 answers
145 views

Game of Runes: revised version

I have created a game called Runes in C. It is similar to Chess, but has a bigger board and different pieces. I would like to know how I can improve the code, for example, with user interface ...
user avatar
7 votes
3 answers
2k views

Guess number game

I'm making a simple guess a number game. In game, user should input minimum and maximum value and program should generate random number between this numbers, later user should try and guess the number....
Goran B's user avatar
  • 177
7 votes
2 answers
2k views

Go (board game) check for removed stones

Given a board state in the game of Go (19x19 grid with entries white, black, ...
FirefoxMetzger's user avatar
7 votes
2 answers
2k views

Higher lower game in Ruby

I finished the Ruby chapter in Seven Languages in Seven Weeks. It tries to make you familiar with the core concepts of several languages rather quickly. Dutifully I did all exercises, but most likely ...
Steven Jeuris's user avatar
6 votes
2 answers
4k views

2 player dice game, where even total gains points and odd total loses points NEA task computer science

This is a game for two users who roll 2 dice 5 times. If the total of dice is even the player gains 10 points if it is odd, they lose 5. If there it is a draw after five rounds then the both users ...
colkat406's user avatar
  • 482
6 votes
3 answers
2k views

The Mysts of Altair - text-based adventure game

This is my code for The Mysts of Aesthoth so far. I'd like to know if I'm following best practices, and what can be improved. ...
Andrew Tew's user avatar
6 votes
1 answer
4k views

Determining winner and winning hand in poker (holdem)

I wrote couple classes that calculate winner, winning hand and winning hands rank (straight, flush, fullhouse etc.). I searched for something similar, but only found posts where five cards are used, ...
Townsheriff's user avatar
6 votes
2 answers
22k views

Two-player dice game for NEA task computer science (Updated)

This is a game for two users who roll 2 dice 5 times. If the total of dice is even the player gains 10 points; if it is odd, they lose 5. If there is a draw after five rounds then both users will ...
colkat406's user avatar
  • 482
6 votes
1 answer
2k views

Console-based BlackJack in C# - Follow-Up

I have done some code-refactoring of my console-based BlackJack in C#. Finally found a better solution to solve Ace problems (double Aces should be value 22 and third Ace should be value 1). I still ...
Steve Ngai's user avatar
5 votes
0 answers
221 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
5 votes
1 answer
476 views

Text based game “Hunt the Wumpus” Version 3

this is a follow up of:Text based game “Hunt the Wumpus” Version 2 this code was used as a base to turn this game into a gui game with fltk: Hunt the Wumpus GUI (FLTK) I took the suggestions made ...
Sandro4912's user avatar
  • 3,046
5 votes
1 answer
271 views

Setting up keyboard bindings using JSON and reflection

My game uses configuration files in JSON format. One of them is used for setting up control bindings, and it looks like this: ...
Big McLargeHuge's user avatar
5 votes
2 answers
123 views

Revised Job Queue for Strategy Game

After posting my previous question about this Job Queue, I decided I wasn't actually very happy with it. I am embarrassed to admit that upon further testing it did not function properly in all ...
bazola's user avatar
  • 8,579
4 votes
1 answer
375 views

Text based game “Hunt the Wumpus” Version 2

This is a follow-up of: Text based game "Hunt the Wumpus" A follow up of this review was posted here: Text based game “Hunt the Wumpus” Version 3 I tried to incorporate the suggestions ...
Sandro4912's user avatar
  • 3,046
4 votes
1 answer
145 views

An Update on my TileMap Class

I'm making a old-school Final Fantasy type game and I made a tile map class a while back and posted it on here (Is this a good way to implement a tile map from a text file?) But, when I got to ...
Twiggy's user avatar
  • 333
4 votes
1 answer
729 views

Game of Quarto in Python

Does anyone have suggestions for how to make this code for playing a game of Quarto cleaner and more robust (beyond input error checking, which hasn't been fully fleshed out yet)? ...
alvomwcc's user avatar
4 votes
2 answers
1k views

Wrath Cookie Switch for Auto Golden Cookie Clicker

Sometimes you feel like a wrath cookie and sometimes you don't. Here is a function that I created that will run on an interval, so all I have to do is set a boolean when I want to switch between ...
Malachi's user avatar
  • 28.6k
4 votes
1 answer
1k views

Snakes and ladders random world builder

I wrote a random world generator for the classic Snakes and Ladders board game. Snakes and Ladders is a dice game played over a grid, usually 10x10. You win by reaching the last square first. The ...
Mohamad's user avatar
  • 2,034
4 votes
3 answers
2k views

Using the observer pattern with collision detection

My Game class has a property of type Player, which inherits from Entity: player = new Player( "knight.png" ); It also has a property of type World, which has a ...
Big McLargeHuge's user avatar

1
2 3 4 5 6