Simple Console Based Minesweeper Game

This is a simple minesweeper game, done in Erlang. The aim of the gameis simple: open positions in the board without hitting mines. Flag allmine positions. The game is over when all mines are marked and emptypositions revealed or a mine is revealed.

This is a simple minesweeper game, done in Erlang. The aim of the game is simple: open positions in the board without hitting mines. Flag all mine positions. The game is over when all mines are marked and empty positions revealed or a mine is revealed. This is still work in progress. For the time. A good example for a minesweeper game, is the one that ships with Windows (any version); a simple search for [online minesweeper game] will also direct you to several versions, which all have the same concept. Otherwise, play the game from the final SWF file, embedded above. Honestly, I can't describe better than fkmines(6) [1]: 'fkmines is a console-based Minesweeper clone. Bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla.

This is still work in progress. For the time being only a simpleconsole interface and initial web UI are done.

Build using make:

Run tests:

The EUnit tests are currently mixed with the application code andconditionally compiled. The reason for the initial decision is basedon the method presented in course'Introduction to Systematic Program Design - Part 1'by Gregor Kiczales. The tests will probably be separated into ownfiles in the future.

Simple:

Web UI

The game starts a web server in http://localhost:8080.Open a browser there and start a new game by clickin the 'New game' button.

Playing the game should feel familiar: left clicking on a gray square opens itand hopefully does not reveal a mine. Right clicking on a gray square flags itas a mine or removes the flag.

Console based

The only indication of a won game is that all the cells have been successfullyopened and mines flagged. This is still a work in progress.

The gray squares are unknown, white squares are opened and a possible number ina white square tells how many mines are in adjacent squares.

Console UI

Start the game with function ms_console:start_game(Rows, Cols, MineProb), where Rows is the row count, Cols is the column countand MineProb is the probability of mines in range [0..100]. The lastargument will be changed to be actual mine count instead of justprobability of mines in the future.

The game starts and displays an undiscovered mine field.

Mine field legend:

  • # undiscovered location
  • . discovered empty location, no neighboring mines
  • 4 discovered empty location, 4 neighboring mines
  • x a flagged location
  • * a mine
  • o a false flag, shown after game over

Commands:

  • p show the mine field again
  • o 4 5 open location row 4, column 5
  • f 4 5 flag location row 4, column 5 as suspect mine
  • u 4 5 remove flag from location row 4, column 5
  • q quit the game

Console Based

Example Session

Start a game with 10 rows, 20 columns and 10 percent probability for mines:

Projects

  • Advanced Wars Clone
    My attempt at an advanced wars like game.
  • Age of the Internet
    A Java game about a kid named Toby who's stuck inside the Internet.
  • ai agentwork
    Artificial Intelligence work on agents in game playing.
  • AndroidPunk
    , animation, input, and collision to name a few) is already coded for you and ready to go, giving you more time and energy to concentrate on the design and testing of your game.
  • angryships
    Prototype of a new game based on super flying thing, worms2 and angry birds ideas.
  • apollo
    An open source Java game server suite designed to be lightweight, fast and secure.
  • Arena
    Custom arena for any type of mini game.
  • atlantis
    A tile laying game that's fun for the whole family!.
  • basicblackjack
    Old school, console based blackjack game.
  • BlackJava
    A Blackjack game made with Java.
  • CaptureThePoints
    PVP capture game with wool.
  • casanova
    A charming general game player.
  • Chess
    A simple 2 player chess game with no AI.
  • cinnamon
    Dave and Brandon Clue game.
  • Civ6
    The ultimate civ game.
  • ClassiCubeLauncher
    Launcher/updated for the desktop version of the ClassiCube.net game client.
  • com.happyprog.pairhero
    Pair hero is a pair programming collaboration game.
  • com.team2.civ
    Civilization esque game project from Team2 (OOP course project).
  • Computer Games
    Fall '10, with Professor Perlin.
  • Continuity
    NaND Inc. software lab 4. homework repository, clone of the Continuity game.
  • Crapout
    A java based webapp for playing Craps, the popular dice game of chance.
  • CrossGate MLServer
    A Mail server for Online Game CrossGate.
  • Dominion
    Java version of the card game Dominion.
  • Doodle Games
    Ensemble de jeux de type Doodle.
  • DungeonCreeper
    A spout game , remake of the famous Dungeon Keeper.
  • epiris td example
    Public Domain fully featured tower defense game built on top of AndEngine.
  • Frogger
    Implementation of game Frogger in Java.
  • Game
    What for a game ? I dont know :P ;), surprise.
  • Game Grade 11
    Summative Project for Grade 11.
  • Game of Life in Java
    John Conways Game of Life in Java, either as a applet or as a stand alone program.
  • game theory poker
    A game theoretic poker player (written in 2005).
  • gamemasterdice
    Game Master Dice is (yet another) dice app, focused at the 3D20 system.
  • gamesim
    A simple social game workload simulator.
  • GamesRepo
    This is the initial repo for the games team.
  • Geronimoo s Dominion Simulator
    A tool to simulate games of Dominion (the card game ).
  • ggp base
    The General Game Playing Base Package.
  • Glitched
    Code repository for the game Glitched, by Glitched Studios.
  • Gmk Splitter
    GmkSplitter is a tool which can convert Game Maker.gmk and.gm81 files into a source control friendly directory, which contains the resources and scripts of the game as separate files. It can also reassemble this directory back into a new.gmk or.gm81 file. Binary downloads can be found on the project website, linked below.
  • gnubridge
    Open source java contract bridge game.
  • GraviTux
    cross platform open source game for our university project.
  • gte
    Game Theory Explorer: Build, explore and solve extensive form games.
  • GWLP R
    See Game Revision.com or the temporary project overview:.
  • Hackathon2010
    Flight PvP game for GTUG Stockholm Hackathon 2010.
  • Hexel
    A voxel based exploration game.
  • InkscapeToLevel
    Use Inkscape to create levels for your game projects.
  • INQSHTCT
    Guitar game with procedurally generated music.
  • ISI Social Game
    Aaron and Spencer's Prototype.
  • JCloisterZone
    Java implementation of Carcassonne board game.
  • JobScheduler
    Job Scheduling in Networked Manufacturing in Networked Enviornment using Game Theory.
  • Kaliber
    An application for easy access to using standard (HID) input devices, USB game controllers and PSMove motion controllers.
  • KillTeam
    KillTeam is a AI for a students competition @HAW Hamburg for the TankArena Game.
  • l2jserver2
    l2j game server rewrite interlude support added.
  • language game
    Java translators for various fun variants of English.
  • LateralGM
    A free Game Maker source file editor.
  • LunasDreamwalk
    Savegame editor for the popular mobile game 'My Little Pony'.
  • monopoly
    Projet Monopoly IA04 P2012 Simulation d'un jeu de monopoly avec plusieurs IA aux strat?gies diff?rentes // School project Simulation of a monopoly game involving bots player with artificial intelligence and different strategy to win the game.
  • netbang
    A networked computer version of the card game Bang!.
  • NovlServer
    The server powering Novl Game Social.
  • Othello
    the classic abstract strategy game.
  • PipeDream
    A copy of the old NES version of the game.
  • playn cookbook
    A collection of examples of common game techniques, written using PlayN.
  • PolandballRTS
    A Polandball RTS game coming out soon!.
  • Poolesville 2010 Games Project
    A computer game playing project for Poolesville High School's 2010 algorithms class.
  • Prelude of the Chambered
    Notch's Prelude of the Chambered 48 hour game.
  • prototypes
    A collection of tests and game prototypes.
  • QuantumDrive
    Open source RTS for the new handheld gaming system 'Pandora' at www.openpandora.org Please do not hesitate to donate. We need to get another pandora for testing.
  • R base
    R base is a game in which you play as a robot. You are either on the 'police' team, or the 'junkie' team. Your goal as the 'junkies' is to eliminate the other team within a certain amount of time, otherwise the 'police' win. Includes net play with unlimited players (eventually).
  • rand GAME
    Game made for Moosader 8 Competition Proceduraly Generated Elements.
  • ReadyMade
    An exploration into component based game development.
  • Refactoring Golf
    Refactoring Katas for the game 'Refactoring Golf'.
  • rock paper scissors in java
    The game rock paper scissors implemented using Event Sourcing in Java.
  • roguedream
    My failed 7DRL entry that used the web to autogenerate a game.
  • roguelike game development
    making a roguelike game like dnd.
  • ScoreBoard
    ScoreBoard is a web based system, to keep track of game results and player stats for small office games.
  • scribedroid
    The Mark Steere Abstract Game , Scribe.
  • SimplePowerStorage
    Just a simple way to store early game MJ.
  • social mongo spring data
    A simple project which demonstrates how MongoDB with Spring Data can be applied to create a backend of a social game.
  • sokoban client
    A client for the game sokoban, developed in a course on artificial intelligence.
  • Sorry Game
    Web browser based version of the board game Sorry?. Completed as part of a semester long project for CS205: Software Engineering at The University of Vermont, College of Engineering and Mathematical Science.
  • Squash
    Play game service sample 'Squash' with a Gradle build file.
  • sudo ku
    A Java based sudoku game.
  • Sudoku
    Sudoku game Technology Topic Class.
  • sudoku portlet
    Sudoku game implementation as portlet.
  • taken
    My game for Ludum Dare 20.
  • tdd tetris tutorial
    Tutorial for learning TDD. You make a Tetris game by writing code to pass the test cases. See README. Feedback is welcome!.
  • TeamKaiSuperHappyPlace
    Rock Paper Scissors game designed by select members of CS 151.
  • Telephone Game
    Let's play with speech recognition.
  • TerasologyLauncher
    Terasology Launcher is the official launcher for the open source game Terasology.
  • toohardforyou
    2H4U, which stands for Too Hard For You, is a mix between a Tetris like game and a wall breaker.
  • Tradesong
    A game about life (and money).
  • tyrant
    Tyrant Roguelike game in Java.
  • Ultimate Ascent
    FIRST Team 1923's official repository for the 2013 game , Ultimate Ascent.
  • Ursuppe Sample
    Example on how the Ursuppe game could be implemented (Programming2 exercise).
  • Wasteland MUD
    Multi User Dungeon command line game in Java.
  • zoogas
    Z00 G45. A simple entropy maximizing game on a Lotka Volterra cellular automaton.

Console Based Bank Application In Java



Console Based Programming

Home »
Java Free Code »
Game »
Game
Game 2D
Game 3D
Game adventure
Game API
Game engine
Game framework
Game GWT
Game HTML5
Game http
Game image
Game JavaFX
Game Library
Game multiplayer
Game network
Game plugin
Game Puzzle
Game RPG
Game shooter
Game Space
Minecraft
Minesweeper
TicTacToe