Skip to content

JakubKubista/NIM-android

Repository files navigation

Android game NIM

  • Author: Jakub Kubista
  • Course: XML
  • Language: Java
  • Name: NIM
  • Development environment: Android Studio 2.0
  • Date: Apr 2016 - Jun 2016

Goal of the project

Create an android application, which includes work between activities, SQLite DB, APIs, AI. The core of artificial intelligence is complete AND/OR graph.

Run

Copy APK into your android or run simulation in Android Studio 2.0 or other development tool.

Goal of the game

Play the game against the AI to win. Force a computer to took the last bean.

How to play

  1. Click on the button Settings
  2. Set number of beans and who will start.
  3. Click on the button New Game.
  4. Took one or two beans each round to accomplish the goal of the game.
  5. Save or restart the game by at the top right button.
  6. Check statistics at the title menu.

Notes about implementation

The core Activity of program can be find in path: app\src\main\java\com\mendelu\vui_nim\GameActivity.java

Many lines of the code contains a lot of log messages for detail description what's happening in the memory, so code is a little bit longer.

I have to say a big thank to Ing. Jan Kolomazník, Ph.D., who inspired me a lot.

About

Project created for courses XML in Java language for Mendel University. Play the game against AI to win.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages