Algorithms

Algorithm for Othello

  1. Each player chooses either black or white.
  2. Each player places two black and two white pieces in an alternating pattern in the middle of the board in the form of a square.
  3. Black plays first and draws a single disc and places it on a valid spot on the grid.
  4. You must place a disc on a spot that allows you to “flank” or “capture” at least one of your opponent’s discs by bordering them in a row.
  5. You must flip all captured discs to your color.
  6. To capture your opponent’s discs you must have 1 of your own pieces at the end of a row and then on your turn place a new piece at the beginning of the row. Everything in between on that row is now flipped to your color. You can only capture rows of a single color adjacent to each other; there cannot be any open space or your own discs between them or the combo is interrupted.
  7. You can flank any number of discs. You may capture discs vertically, horizontally, diagonally. You may capture in multiple directions at the same time. All discs that can be flipped must be flipped. You cannot pick and choose which ones are captured.
  8. If you cannot make a valid move then your turn is forfeited and your opponent may go again. If you have a valid move available to you then you must make that move and are not allowed to forfeit your turn.
  9. If you have run out of discs, but can still make valid moves, then your opponent must give you one of their own discs to play with. This exchange can continue for as long as needed.
  10. When neither player can make any further play then the game is over.
  11. Each player counts the number of spaces occupied by their color. Highest count is the winner. Games can end before all spaces are filled.

Hangman algorithm

  1. A random is chosen from a word bank and is represented by stars.
  2. The Player is prompted to guess a letter: if the guess is incorrect the player gets a strike. If the player guesses correctly go to step 4
  3. If the player gets 7 incorrect guesses, or 7 strikes, the player loses, go to step 8
  4. If the player guessed the word correctly, go to step 7. If the player guessed a letter correctly, go to step 5
  5. The AI will tell the player how many of the guessed letter is in the word as well as the location of each of the letters.
  6. If there are any unknown letters left go to step 2. If all letters are known go to step 7
  7. The Player Wins!!! end
  8. The player loses. end

User Interview #1

  1. What are some games you have played recently?
    1. Call of Duty Modern Warfare
    2. NBA 2K20
    3. Madden 20
  2. What are some games you might enjoy playing on MATLAB?
    1. Battleship
    2. Hangman
    3. Blackjack
    4. Mastermind
  3. In your opinion what is the optimal length a game should take to play?
    1. 10 minutes or under
  4. What aspects of a game make it enjoyable to you to play?
    1. Simplicity, easy to play, competitiveness, highscores

Team Working Agreement

 

Team Working Agreement

Term  Autumn 2019

Creation 11/6/2019

 

1) Group Identification (Q)

Lab section # –

Table # – Q

Instructor – Busick

 

 

Team member info:

NAME: EMAIL: PHONE: OTHER:
Thomas Thaxton .36
Phillip Jarisch .1
Garrett Morgan .1519
Akshad Ramnath .22

 

2) Primary Means of Communication and Expectations

 

State your team’s agreed upon various means of communication and expectations for response.

 

All members are expected to respond in the group snapchat when a question or statement pertaining to them is asked. Always communicate and try to not leave the chat on read

 

3) Scheduling of Meetings (Schedule at least one meeting as part of constructing your team agreement.)

 

Agreed upon means of scheduling meetings.

 

(Example: Team will agree, at the end of each class, to set any meetings times and agenda needed before the next class and beyond if possible. Team members will take turns to send out a reminder of the meeting with an agenda within eight hours after the class.)

 

Example Agenda Format

Team Name:

Meeting Schedule:

Date: Fridays Time: 12:30 Location: library on 18th

Participating members (If not all.):

Agenda:

 

 

4) General Responsibilities for All Team Members

 

This element of the team working agreement is the list of rules/agreements or the contract that all members agrees to live by.

 

  • Stay on task during meeting time.
  • Divide the work fairly and be sure that everyone participates equally.
  • Complete assigned tasks on time.
  • Be on time to all meetings, and notify other team members ahead of time in case of absence from a meeting.
  • Discuss any problems as they arise.
  • Ensure that all team members have a copy of the finished report.
  • Ensure that all team members understand all of the concepts and information presented in the report.
  • See also Figure 4.05 of reading assignment in Lieu and Sorby Engineering Design, Chapter 4.

 

5) Specific Team Member Responsibilities/Deadlines (Optional)

 

This section may be used to record specific tasks or responsibilities particular team members have assumed.

 

Thomas Thaxton:

  • Coding
  • Making sure deadlines are met
  • Memory Algorithm
  • Introduction , Conclusion, in charge of report
  • Welcome page

Akshad Ramnath

  • coding of Hangman
  • Othello Algorithm

Garrett Morgan

  • Discussion for both
  • Working on the notebook
  • sales pitch
  • coding

Phillip Jarisch

  • coding of Othello
  • helping when asked for notebook

 

6) Conflict Resolution

 

Each team should have a pre-agreed approach to addressing issues that may arise.

 

Example statement: When there are problems within our group pertaining to the general responsibilities or specific responsibilities, the following steps will be taken in this order until a resolution is found.

  1. Discuss problems within the group to come to a working solution, trying to make sure all members have opportunity to participate in the discussion.
  2. Hold a team discussion of the problem with a GTA or Professor to find a solution.
  3. If 1 and 2 fail, ask a GTA or Professor to make a decision (arbitrate).

 

7) Expectations of Faculty and GTA’s

 

 

If a team member fails to live up to this agreement, the situation may be reported to the staff, but the team will still be responsible for submitting a completed assignment. Staff will be available to meet with teams to resolve issues.

 

8) Team Signatures

 

Signature for each student is to be included.

 

Thomas Thaxton

Phillip Jarisch

Garrett Morgan

Akshad Ramnath

 

Be sure that all team members receive a copy of this agreement. Please turn in a printed copy, signed by all members, to your TA as per the DAL.