About 3,500,000 results
Open links in new tab
  1. java - The Game of Nim Loop - Stack Overflow

    Oct 6, 2014 · So, I have to make a Java game in the style of Nim....and I have succeeded in making most of it...I just have a couple of questions that I'm confused on: Question 1: The program executes fine, and...

  2. GitHub - mayjspencer/Nim-Game-Project: Project implementing game of Nim

    Project implementing game of Nim in Java from Programming Structures and Abstractions class.

  3. The-Game-of-Nim - GitHub

    This project is with the ultimate objective of designing and implementing (in Java) a simple variant of the game of Nim. It is a two player game, and the rules of the version used here are as follows: • The game begins with a number of objects (e.g., stones placed on a table). • Each player takes turns removing stones from the table.

  4. The-Game-of-Nim-Programming-II/src/Nim/SmartComputer.java

    A program made for Programming II class that is used to play "Nim." It uses the implementation of "smart" and "dumb" AI to compete with a player in a marble game. Players can take turns playing against each other as well (something extra I added for fun).

  5. Example Nim Game in Java - Syronex

    Example Nim Game in Java with source code.

  6. A modified game of Nim - GeeksforGeeks

    Aug 3, 2022 · In this article, will design a simple number memory game in the C programming language. It is a simple memory number game where a random number is displayed and is hidden after some time. The task is to guess that displayed number to continue the game. How to Play This Game: Press 1 on your keyboard

  7. Nim - [Java] · GitHub

    Instantly share code, notes, and snippets. * Nim is a mathematical game based on 12 marbles and two players. * marble. // Get number of marbles a player wants to take. // Prints winners name to console and stops game. System.out.println ("\n" + p.getName () + " is the winner!"); // Main game loop. // Handles first turn. // Trigger win condition.

  8. java - Nim game - specify winner - Stack Overflow

    Nov 23, 2012 · import java.util.Scanner; /** *@author Andy *@verison 21.11.2012 */ public class NimGame { public static void main (String[] args) { System.out.println ("***** Hello Welcome to the game Nim *****"); System.out.println (" The game is relatively simple....

  9. java - Nim Game, Public Void Play and Calling Methods - Stack Overflow

    Nov 21, 2011 · I modified your code a bit, you can compare to see the difference. import java.util.Random; import javax.swing.JOptionPane; /** * Represents a game of Nim, where players take turns removing marbles from a * pile. The player that takes the …

  10. GitHub - arboydev27/nim_game_java: This Java project …

    This Java project implements the classic two-player strategy game Nim, showcasing principles of object-oriented programming, including polymorphism, abstract classes, and custom exceptions. The game lets players take turns removing objects from piles, with the player forced to take the last object declared the loser. - arboydev27/nim_game_java

  11. Some results have been removed