Preview

Othello Help Session

Powerful Essays
Open Document
Open Document
2122 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Othello Help Session
Othello Help Session
• Writing the GUI
• Switching turns and the referee • Checking for valid moves and flipping
• The MINIMAX(!!!) algorithm
• Copy constructor

Othello Help Session

1 of 17

Nov 21, 2013

Writing the GUI
• Think Tetris! 2D Game Board

- array of squares where each square represents a space on the board
- Could use two arrays – one for pieces and one for squares.
• Separates the graphics from the logic
• These two arrays might be contained in different classes
- board needs to react when you click on it … think of which components should be “smart”
- Important question to answer early on: how will you represent and store your Othello pieces?

• Player Menus

- clicking a radio button sets a player as human or computer - should be able to switch between human and computer players, and two computers of different intelligence levels, at any point during a game
(play with the demo to see how this works)
- have a default player configuration for when the game begins (otherwise you may have
NullPointers!)

Othello Help Session

2 of 17

Nov 21, 2013

Switching Turns and the
Referee

• How boring would a game be if we couldn’t switch whose turn it is?!?!?!
• Need some way of figuring out when one player’s turn is over to switch to next player
• We can use a Referee class!

- keep a reference to both players, keep track of which one is the current player
- tells a player to move when it is his/her turn

• Referee handles checking for illegal moves

- keeps players from moving out of turn
- keeps players from moving when the game has ended
- makes sure that a human doesn’t try to move during computer player’s turn (and vice versa)
- Etc…

• Referee should contain a …. Timer! But why?

- computer player’s moves should update on screen with each timer tick
- so how do we do that??? The first line of actionPerformed() should call stop() on the Timer.
Should we

You May Also Find These Documents Helpful

  • Powerful Essays

    Cited: Shakespeare, William, and Roma Gill. Othello. New ed. Oxford: Oxford University Press, 2009. Print.…

    • 1919 Words
    • 8 Pages
    Powerful Essays
  • Good Essays

    Othello Essay

    • 1031 Words
    • 5 Pages

    “O, beware, my lord, of jealousy! / It is the green-eyed monster, which doth mock/ The meat it feeds on” (Shakespeare III. iii. 195-197). Everyone has the capacity for jealousy. It can change how people think as well as how they act. In the play Othello by William Shakespeare, jealousy is nurtured within the minds of multiple characters, and this jealousy is what ignites the want to make multiple misconceptions arise in order to create havoc and inflict suffering upon others and in some cases, upon themselves. To start off, Iago illustrates how jealousy can cause one to want to inflict pain upon others. Secondly, Roderigo shows how jealousy can make one become easily persuaded into doing wrong things. Lastly, Othello is a fine example of how jealousy can cloud somebody’s mind and cause them to see things as something else and inflict suffering on themselves and on others.…

    • 1031 Words
    • 5 Pages
    Good Essays
  • Better Essays

    Psych Approach to Othello

    • 1379 Words
    • 6 Pages

    "Jealousy is bred in doubts. When those doubts change into certainties, then the passion either ceases or turns absolute madness,"- Francois De La Rochefoucauld. All people have the seed of jealousy inside them. However, the doubts of one's self help grow the seed of jealousy. Othello was never what seemed to be a jealous man but when Iago led him to believe Desdemona was being unfaithful, Othello started to show his side of jealousy which ultimately led to his self destruction. Othello's ego is shown through his indecisive decision and the wavering of his judgement. Othello's primal instincts take over consuming his ego and superego leading him to his downfall. Finally, Othello superego prevails in his reasonable decisions throughout the play. In William Shakespeare's Othello, Othello starts off as a rational and moral character. As the play progresses, Othello becomes consumed by jealousy and he deteriorates resulting in his overactive ID and superego leading to his destruction.…

    • 1379 Words
    • 6 Pages
    Better Essays
  • Good Essays

    Othello Essay

    • 746 Words
    • 3 Pages

    Ladies and Gentlemen of the Jury, I've come here today to present you with a man who wants to justify the murder of his wife. I will show you how unjustified his act and his thoughts were in this not so spontaneous crime. Othello is on trial for murder and I would like to remind you that he has admitted full and absolute blame for this and you should not heed that lightly. Under the circumstances his mental state will come into account, but do not be bewildered by his claims of psychosis as any man could have had these thoughts befallen upon him and not taken action.…

    • 746 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Othello paper

    • 1012 Words
    • 5 Pages

    William, Shakespeare,. Othello authoritative text, sources and contexts, criticism. New York: W.W. Norton & Co., 2004. Print.…

    • 1012 Words
    • 5 Pages
    Better Essays
  • Powerful Essays

    Othello Essay

    • 1073 Words
    • 5 Pages

    Question: How is the issue of conflict used by composers to express and change within and between characters?…

    • 1073 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    Othello Essay

    • 2874 Words
    • 12 Pages

    ADMIRABLE is the preparation, so truly and peculiarly Shakspearian, in the introduction of Roderigo, as the dupe on whom Iago shall first exercise his art, and in so doing display his own character. Roderigo, without any fixed principle, but not without the moral notions and sympathies with honour, which his rank and connections had hung upon him, is already well fitted and predisposed for the purpose; for very want of character and strength of passion, like wind loudest in an empty house, constitute his character. The first three lines happily state the nature and foundation of the friendship between him and Iago,— the purse,—as also the contrast of Roderigo's intemperance of mind with Iago's coolness,—the coolness of a preconceiving experimenter. The mere language of protestation—…

    • 2874 Words
    • 12 Pages
    Good Essays
  • Satisfactory Essays

    Othello Essay

    • 1353 Words
    • 6 Pages

    Othello is a very confusing love story with people who have a lot of issues and problems and they think that the world revolves around them. It is a story of love, hate, and all of the other ridiculous emotions a person can think of. Two characters that would fit into this category of describing would be Desdemona and Emilia. Both women are strong characters, but one may be stronger.…

    • 1353 Words
    • 6 Pages
    Satisfactory Essays
  • Good Essays

    Othello -Essay

    • 927 Words
    • 3 Pages

    Shakespeare’s domestic tragedy Othello continues to engage audiences through its exploration of race and gender power plays- universal concerns that transcend time and place. Othello is a warning for those who attempt to usurp the Elizabethan chain of being power structure. Those people, who attempt to contravene the divinely constructed social order, are punished for their anomalous actions. Through extracting the perennial power relations of the play, a Marxist and Feminist paradigm can be adopted.…

    • 927 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Othello Research Paper

    • 1198 Words
    • 5 Pages

    Othello is predominantly a traditional Shakespearean tragedy shadowed with post-colonial aspects. This view is supported and demonstrated through the characterization of Othello in Othello.…

    • 1198 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Othello Essay

    • 1112 Words
    • 3 Pages

    The analysis of the contrasting tragic hero and antagonist in the text can be impacted by the themes of an era and an individual’s personal views. This motif is evident in the play, Othello written by William Shakespeare, through the true to nature, honourable Othello and the self-seeking and malevolent Iago. Shakespeare’s works classically involve reoccurring themes, which can be left open to individual interpretation. The tragic themes of flawed human nature and race are evident in this text through the tragic hero and villain. The fatal flaw of Othello is jealousy and Iago’s flaw is his dishonesty, it is through this theme that an individual’s true understanding of the contrast between characters in the text is revealed. Similarly, the contrast between Elizabethan society’s views on Moors and how Othello is viewed in Shakespeare’s work can impact ones understanding on race. The typical views of Moors were men who were slaves or servants, not people with status or authority in society. The employment of dramatic and literary techniques that are evident in the play assist to impact on one’s understanding of the themes in the Elizabethan society and the text.…

    • 1112 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Othello Essay

    • 1348 Words
    • 6 Pages

    “Reality is merely an illusion, albeit a very persistent one” (Einstein). Basing a judgment on appearance is rarely the correct assumption about the individual. Not everyone is what he or she appear, or even claim to be. Appearance versus reality is one of the major themes in Othello. Shakespeare uses many literary devices throughout his play to develop this theme. Iago is known for being honest and loyal towards Othello, and the remaining characters of the play. However, he is not what he portrays himself to be. During scenes, he reveals his schemes to the reader. Dramatic irony and asides are effectively used to develop the theme of appearance versus reality.…

    • 1348 Words
    • 6 Pages
    Good Essays
  • Good Essays

    Othello Essay

    • 762 Words
    • 4 Pages

    In Othello we see what jealousy and pride can do to a man and to what extent they will go to satisfy their inner demons. Many a man has fallen prey to the lies of a quick tongue, as well as the humiliation that comes with their confidence and pride. It is hard to say exactly what drives any one man to his dire actions, but one can assume that his temper, pride or honor was the starting spark that led to a fire. Tell me, what drives a man to use others to achieve his goals? In Othello many things were seen and one of the most intricate things was Iago’s manipulation. Iago was able to manipulate others by misusing their unadulterated trust in him as an honest, caring man.…

    • 762 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Othello Essay

    • 685 Words
    • 3 Pages

    And yet she’ll kneel and pray; I have seen her do’t (Othello, IV, ii, ln 1-24).…

    • 685 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Othello Essay

    • 339 Words
    • 2 Pages

    In our culture today taboo is not so uncommon, there is taboo around the world. There are many types of taboo such as: eating habits, physical manipulation, fashion sense, different types of relationships with people, religious beliefs, afterlife beliefs, relationships with inanimate objects, etc.…

    • 339 Words
    • 2 Pages
    Good Essays

Related Topics