Java poker implementation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RandomPlayerInfo.java 767B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) Chris 'MD87' Smith, 2007. All rights reserved.
  3. *
  4. * This code may not be redistributed without prior permission from the
  5. * aforementioned copyright holder(s).
  6. */
  7. package com.md87.cardgame.config.controllers;
  8. import com.md87.cardgame.ui.GameWindow;
  9. import com.md87.cardgame.controllers.RandomPlayer;
  10. import com.md87.cardgame.interfaces.Game;
  11. import com.md87.cardgame.interfaces.PlayerController;
  12. /**
  13. *
  14. * @author Chris
  15. */
  16. public class RandomPlayerInfo extends ControllerInfo {
  17. public RandomPlayerInfo() {
  18. }
  19. public String getName() {
  20. return "AI: Random Player";
  21. }
  22. public PlayerController getController(final Game game, final GameWindow gameWindow) {
  23. return new RandomPlayer();
  24. }
  25. }