Package games.war.behaviors

Examples of games.war.behaviors.Cheating


     * Makes sure warActions works as it should
     */
    @Test
    public void testWarActions()
    {
        PlayerController pc = new PlayerController(new Cheating(), new Cheating());
        pc.warActions();

        assertTrue(pc.warCards1 != null);
        assertTrue(pc.warCards2 != null);

View Full Code Here


     * makes sure update works as it should if one player has no hand left
     */
    @Test
    public void testUpdatePlayerOneEmptyHand()
    {
        PlayerController pc = new PlayerController(new Cheating(), new Cheating());

        String dashes = "--------------------------------------------------------------------------------";
        String killOutput = "\n" + dashes + "\nPlayer One\tPlayer Two\nCards: 0\tCards: 26\n";
        String properOut = killOutput + "Player 2 won in ";

View Full Code Here

     * Makes sure update works if the other player has no hand left
     */
    @Test
    public void testUpdatePlayerTwoEmptyHand()
    {
        PlayerController pc = new PlayerController(new Cheating(), new Cheating());

        String dashes = "--------------------------------------------------------------------------------";
        String killOutput = "\n" + dashes + "\nPlayer One\tPlayer Two\nCards: 26\tCards: 0\n";
        String properOut = killOutput + "Player 1 won in ";

View Full Code Here

     * Makes sure the update method works
     */
    @Test
    public void testUpdate()
    {
        PlayerController pc = new PlayerController(new Cheating(), new Cheating());
        String dashes = "--------------------------------------------------------------------------------";
        String killOutput = "\n" + dashes + "\nPlayer One\tPlayer Two\nCards: 26\tCards: 26\n";

        pc.update();

View Full Code Here

TOP

Related Classes of games.war.behaviors.Cheating

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.