Code Monkey home page Code Monkey logo

hack-a-duo's Introduction

Multiplayer Pattern Matching Game

This Kotlin application implements a simple pattern matching game that can be played as singleplayer or multiplayer. Screenshots of the application and its behavior are available here.

Prerequisites

  • Android Studio
  • Surface Duo emulator

Running the sample

  • Start Android Studio.
  • Open the MatchingGame project: File > Open, navigate to file location of the the MatchingGame folder, then click OK.
  • Build your project: Build > Make Project or Ctrl+F9
  • Start the Surface Duo emulator
  • Select "Microsoft SurfaceDuoEmulator API 29" or "Virtual Device" from the list of Running Devices.
  • Run the project on the emulator: Run > Run 'app', Ctrl+F2, or click the green play button.

Key concepts

App features

  • Begin a game: click on the "Let's Begin!" button to start a new game
  • Restart a game: click on the "Restart" button to reset current game to beginning
  • Playing a game: a series of buttons will flash for each level of the game; repeat that pattern to advance to the next level
  • Advancing to the next level: click on the "Start Level" button after successfully repeating a pattern to advance

Game in multiplayer mode when pattern is being played

Multiplayer

This app supports multiplayer mode where two different players can compete against each other at the same time. Each player has their own screen (and set of buttons) to repeat patterns generated by the game. Players will be able to advance levels only after both players have completed the pattern successfully. If one player fails, the other wins and gains bragging rights!

Game in multiplayer mode when pattern is being played

Singleplayer

In singleplayer mode, one player can challenge themselves to complete all levels of the game. If they fail to repeat a pattern, they can restart and try again. If they complete all of the levels, a congratulatory dialog will appear with a link to a secret feature of the game!

Start screen of game in singleplayer mode

Secrets

This app contains a secret feature that utilizes the unique qualities of a dual screen device. Can you figure out what it is? If you can't handle the suspense, take a peek in the screenshots folder here.

Contributing

This project welcomes contributions and suggestions. It is also under the Apache software license.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.