Android Open Source - MiReversi Invalid Move Exception






From Project

Back to project page MiReversi.

License

The source code is released under:

MIT License

If you think the Android project MiReversi listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
* Copyright (c) 2011 Makoto Ishida//from   ww w . j a v  a  2 s .c  om
* Please see the file MIT-LICENSE.txt for copying permission.
*/

package com.example.mireversi.exceptions;

public class InvalidMoveException extends Exception {

  private static final long serialVersionUID = 8874475463061014928L;
  
  String mMsg = "Invalid move.";
  
  public InvalidMoveException(){
    //
  }
  
  public InvalidMoveException(String msg){
    mMsg = msg;
  }
  
  @Override
  public String getMessage(){
    return mMsg;
  }
}




Java Source Code List

com.example.mireversi.GameActivity.java
com.example.mireversi.Pref.java
com.example.mireversi.ReversiView.java
com.example.mireversi.Utils.java
com.example.mireversi.exceptions.InvalidMoveException.java
com.example.mireversi.model.Board.java
com.example.mireversi.model.Cell.java
com.example.mireversi.model.ComputerPlayerLevel0.java
com.example.mireversi.model.ComputerPlayerLevel1.java
com.example.mireversi.model.ComputerPlayerLevel2.java
com.example.mireversi.model.ComputerPlayerLevel3.java
com.example.mireversi.model.ComputerPlayer.java
com.example.mireversi.model.HumanPlayer.java
com.example.mireversi.model.IPlayerCallback.java
com.example.mireversi.model.Player.java