Flat 50% Off on Assignment Bookings

Object Oriented Design



Final design.

Class diagram..

Main class:


Methods Description:

Void GenerateButtons ().

Void toggle player.

Void checkifgamends.

Void show winner ().

Void btnclicked.


Statement of Completion:


The board has a series of 24 intersections or lines. - the player has 9 pieces, typically black and white, or 'people.' players seek to create "mills," which require a person to eliminate the man from the game, three of their own people lined horizontally or vertically. Nine Morris men may be separated into two different stages. The beginning, in which stones are put on the board and in the center and close, in which stones are relocated. These two steps proceed to a state-space characteristic model. The opening stage produces most notably an acyclic graph, whereas moving cycles will occur in the mid- and final stage. The quest range is another distinction. The opening is described explicitly to be 18 fold deep for each direction, but depending on the selected steps, the time spent in the mid and end game can vary.

These numerous properties imply utilizing multiple methods of the quest. We agreed to construct databases of both mid and final positions by utilizing the retrograde approach. The truth is that retrograde research processes loop more quickly than forwarding search. Furthermore, the opening quest needs several values. This implies possibly to calculate the meaning for all or virtually all interdependent, according to the interdependencies.

We mark areas where the player fails in two parts with three stones. These are readily identifiable roles that fall into one of the following categories:

  • the adversary has two open mills with no common stones
  • The adversary has two open mills, and cannot shut the mill by the player to move;
  • The running player must eliminate the stone preventing the mounting of the enemy.

If all win and losses have been calculated, the initialization determines the worth of all remaining locations. The individual values of the 'written' states are then set by an iterative procedure.

Initially, remember how winning and losing in two-player games are propagated. If the player losses a spot to pass, the predecessors may be counted as the opponent's wins. Likewise, both ancestors are possible defeats for the loser if a position is gained to move. They are actual losers only if the player still gets all of his successors.

Both of the replacements will be unsuccessful at deciding if a role is a failure or not. The number of successors not yet established win for the adversary can be saved using a count field for each territory. Then we actually decrease Count instead of testing all of the successors if a place arises. When it is empty, the adversary retains all heirs, and the position may be described as a defeat.

Final Design

Class Diagram

I have used C# language to implement this game. Using this general-purpose framework, I have used multiple classes like list and others. In this code, I have used the main class and multiple built-in classes and methods to complete this so I can accomplish all tasks of the project.

Main Class:

In this class, I have used multiple methods to create design make the backend logics with it to generate the buttons.


  • GenerateButtons ()
  • toggle player
  • endgame
  • winner
  • btnclicked

These are the method that we are using in this code to make the code work so that it will be having more efficiency

Void GenerateButtons ()

In this piece of code, I have implemented and arranged the GUI of the game. This function helps to generate buttons. I have three buttons on the GUI for selecting the Players and for proceeding the game.

Void toggleplayer

This method will automatically convert the users or player from one another turn by turn, so the user no need to decide that which turn is it will automate the turns. A toggle button allows the user to change a setting between two states.

Void checkifgamends

In this method, I have code to check whether the game has ended or not by checking the condition of winning or losing or WI draw of the participant.

 Void show winner ()

This method shows the winner's message to the participant after getting the condition from the end game method and prints the message to the winner by saying that the winner is a player.

Void btnclicked

It just checks the button clicked or not for the game to proceed. The game will be played by two players who turn each of the nine pieces on the board at the intersection of the lines. Three intersections are on the board above. A player who forms the mound with his pieces (three pieces in a straight line) is permitted to remove any pieces from the board of opponents. If a player reduces the opponent to only 2 pieces or blocks the adverse from further movements, he wins the game. The game consists of three phases.

The creation of a "running machine," five pieces put in a way that almost forms two miles, is one of the most destructive tactics. A piece from the entire mine that glides to an adjective point to finish the second mountain and slide back to the first mine on the next turn, infinity. Thus, each turn the player forms a climb. Black continues the game with the initiative, first moves, then decides the action. However, the white player must always attempt to make defensive movements that threaten to attack; seek to threaten the creation of white mills if a black mill is blocked. Black's going to have to tell them.

  • Opening Process – The two players put their 9 pieces on the board alternately during this step.
  • Phase of the mid-game – Phase II begins after both players finish on the board with all their pieces. Everybody at this stage, in this phase, each player moves his pieces along the lines on the board.

Ending Phase – The final phase begins with just three remaining players on the board.


  • Button listeners
  • Lists
  • Arrays
  • Actin listeners

The here male Morris is played in points of a grid of 2 to2 squares, or in grid squares of 3 to3 squares, as in tic-tac-toe, which is often called nine-holes. Two players are participating in the game; there are three men in each team. In each of their first three sets, the player placed one man on the board winning if the mill (like the tic-tac-toe) is created. Every player then transfers one of his men in the following versions of the rules:

  • Any vacant place
  • Any vacant place adjacent

Sources for Nine Men's Morris aka Mills. Game Implementation

Yamacli, S. (2017). Beginner's Guide to C# Programming: A Practical Approach in Visual Studio.

Deitel, P., & Deitel, H. (2016). Visual C# how to program. Pearson.

Remember, at the center of any academic work, lies clarity and evidence. Should you need further assistance, do look up to our Computer Science Assignment Help

Get It Done! Today

  • 1,212,718Orders

  • 4.9/5Rating

  • 5,063Experts


  • 21 Step Quality Check
  • 2000+ Ph.D Experts
  • Live Expert Sessions
  • Dedicated App
  • Earn while you Learn with us
  • Confidentiality Agreement
  • Money Back Guarantee
  • Customer Feedback

Just Pay for your Assignment

  • Turnitin Report

  • Proofreading and Editing

    $9.00Per Page
  • Consultation with Expert

    $35.00Per Hour
  • Live Session 1-on-1

    $40.00Per 30 min.
  • Quality Check

  • Total

  • Let's Start

500 Words Free
on your assignment today

Browse across 1 Million Assignment Samples for Free

Explore MASS
Order Now

My Assignment Services- Whatsapp Tap to ChatGet instant assignment help

Collect Chat