test_class.file: CodeSmells/src/ttt/GameTest.java
test_class.identifier: GameTest
test_case.body: @Test
  	public void testFindWinningMove() {
  		Game game = new Game("XO-XX-OOX");
  		assertEquals(5, game.move('X'));
  	}
test_case.class_method_signature: GameTest.testFindWinningMove()
test_case.full_signature: @Test public void testFindWinningMove()
test_case.identifier: testFindWinningMove
test_case.invocations: assertEquals move
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFindWinningMove()
focal_class.declarator: board
focal_class.modifier: public
focal_class.original_string: public StringBuffer board;
focal_class.type: StringBuffer
focal_class.var_name: board
focal_class.file: CodeSmells/src/ttt/Game.java
focal_class.identifier: Game
focal_class.class_method_signature: Game.Game(String s)
focal_class.full_signature: public  Game(String s)
focal_class.identifier: Game
focal_class.modifiers: public
focal_class.parameters: (String s)
focal_class.signature:  Game(String s)
focal_class.class_method_signature: Game.Game(StringBuffer s, int position, char player)
focal_class.full_signature: public  Game(StringBuffer s, int position, char player)
focal_class.identifier: Game
focal_class.modifiers: public
focal_class.parameters: (StringBuffer s, int position, char player)
focal_class.signature:  Game(StringBuffer s, int position, char player)
focal_class.class_method_signature: Game.move(char player)
focal_class.full_signature: public int move(char player)
focal_class.identifier: move
focal_class.modifiers: public
focal_class.parameters: (char player)
focal_class.return: int
focal_class.signature: int move(char player)
focal_class.class_method_signature: Game.play(int i, char player)
focal_class.full_signature: public Game play(int i, char player)
focal_class.identifier: play
focal_class.modifiers: public
focal_class.parameters: (int i, char player)
focal_class.return: Game
focal_class.signature: Game play(int i, char player)
focal_class.class_method_signature: Game.winner()
focal_class.full_signature: public char winner()
focal_class.identifier: winner
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: char
focal_class.signature: char winner()
focal_method.body: public int move(char player) {
  		for (int i = 0; i < 9; i++) {
  			if (board.charAt(i) == '-') {
  				Game game = play(i, player);
  				if (game.winner() == player) 
  					return i;
  			}
  		}
  
  		for (int i = 0; i < 9; i++) {
  			if (board.charAt(i) == '-') 
  				return i;
  		}	
  		return -1;
  	}
focal_method.class_method_signature: Game.move(char player)
focal_method.full_signature: public int move(char player)
focal_method.identifier: move
focal_method.invocations: charAt play winner charAt
focal_method.modifiers: public
focal_method.parameters: (char player)
focal_method.return: int
focal_method.signature: int move(char player)