// Path: src/shaft/poker/factory/PokerFactory.java
// public class PokerFactory {
//     
//     private List<IPlayer> _players;
//     private PokerTable _table;
//     
//     private List<CompositeFieldRange> _fieldRanges;
//     private List<IPlayerRange> _playerRanges;
//     
//     private boolean _genericModel;
//     
//     private static String[] _agentNames = {
//         "Boris",
//         "Jeff",
//         "John",
//         "Clark",
//         "Marcel",
//         "Mary",
//         "Anna",
//         "Joan",
//         "Batman"
//     };
//     private static int _nameCount = 0;
//     
//     
//     public PokerFactory() {
//         _players = new ArrayList<>(10);
//         _fieldRanges = new ArrayList<>(10);
//         _playerRanges = new ArrayList<>(10);
//     }
//     
//     public void genericModel(boolean generic) {
//         _genericModel = generic;
//     }
//     
//     private IFrequencyTable buildFreqTable(String id) {
//         if (_genericModel) {
//             return new GenericFrequencyTable();
//         }
//         return new PlayerSpecificFrequencyTable(id, _table);
//     }
//     
//     public ITable newLimitTable() {
//         _table = new PokerTable(new LimitRules());
//         return _table;
//     }
//     
//     public void addHumanPlayer() {
//         CompositeFieldRange compRange = new CompositeFieldRange(_table, new WeightTable(_table));
//         addPlayer(new HumanPlayer(_table), compRange);
//     }
//        
//     public IPlayer addGUIHumanPlayer() {
//         CompositeFieldRange compRange = new CompositeFieldRange(_table, new WeightTable(_table));
//         HumanPlayerGUI gui = new HumanPlayerGUI(_table);
//         addPlayer(gui, compRange);
//         return gui;
//     }
//     
//     public void addSimpleAgent() {
//         String id = _agentNames[_nameCount++];
//         addAgent(new HeuristicPPotEval(), new SimpleStrategy(_table), id);
//     }
//     
//     public IPlayer addBlankNeuralNetAgent() {
//         String id = _agentNames[_nameCount++];
//         return addAgent(new HeuristicPPotEval(), new NeuralNetStrategy(_table), id);
//     }
//     
//     public IPlayer addTrainedNeuralNetAgent(String name) {
//         PlayerAgent agent = addAgent(new HeuristicPPotEval(), new NeuralNetStrategy(_table), name);
//         NeuralNetStrategy strat = (NeuralNetStrategy) agent.bettingStrategy();
//         strat.networkFromFile(name);
//         return agent;
//     }
//     
//     private PlayerAgent addAgent(IHandEvaluator eval, IBettingStrategy strat, String id) {
// 
//         CompositeFieldRange compRange = new CompositeFieldRange(_table, new WeightTable(_table));
//         PlayerAgent agent = new PlayerAgent(_table, id, new CompoundHandEval(new PreflopHandGroups(), eval), compRange, strat);
//         addPlayer(agent, compRange);
//         return agent;
//     }
//     
//     private void addPlayer(IPlayer player, CompositeFieldRange compRange) {
//         _table.addPlayer(player);
//         for (IPlayerRange range : _playerRanges) {
//             compRange.addRange(range);
//         }
//         IPlayerRange ownRange = new PlayerWTRange(player.id(), new WeightTable(_table), buildFreqTable(player.id()),
//                 new CompoundHandEval(new PreflopHandGroups(), new HeuristicPPotEval()), compRange, _table);
//         for (CompositeFieldRange fieldRange : _fieldRanges) {
//             fieldRange.addRange(ownRange);
//         }
//         _fieldRanges.add(compRange);
//         _playerRanges.add(ownRange);
//     }
//     
//     
//         
//     public static IDeck buildDeck() {
//         return new CardDeck();
//     }
// 
//     public static IHand buildHand(List<Card> holeCards, List<Card> board) {
//         return new Hand(holeCards, board);
//     }
// }


import javax.swing.JFrame;
import shaft.poker.factory.PokerFactory;
/*
 * The MIT License
 *
 * Copyright 2013 Thomas Schaffer <thomas.schaffer@epitech.eu>.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package shaft.poker.game;


/**
 *
 * @author Thomas Schaffer <thomas.schaffer@epitech.eu>
 */
public class Lucki {
    public static void main(String[] args) {
       
// Path: src/shaft/poker/factory/PokerFactory.java
// public class PokerFactory {
//     
//     private List<IPlayer> _players;
//     private PokerTable _table;
//     
//     private List<CompositeFieldRange> _fieldRanges;
//     private List<IPlayerRange> _playerRanges;
//     
//     private boolean _genericModel;
//     
//     private static String[] _agentNames = {
//         "Boris",
//         "Jeff",
//         "John",
//         "Clark",
//         "Marcel",
//         "Mary",
//         "Anna",
//         "Joan",
//         "Batman"
//     };
//     private static int _nameCount = 0;
//     
//     
//     public PokerFactory() {
//         _players = new ArrayList<>(10);
//         _fieldRanges = new ArrayList<>(10);
//         _playerRanges = new ArrayList<>(10);
//     }
//     
//     public void genericModel(boolean generic) {
//         _genericModel = generic;
//     }
//     
//     private IFrequencyTable buildFreqTable(String id) {
//         if (_genericModel) {
//             return new GenericFrequencyTable();
//         }
//         return new PlayerSpecificFrequencyTable(id, _table);
//     }
//     
//     public ITable newLimitTable() {
//         _table = new PokerTable(new LimitRules());
//         return _table;
//     }
//     
//     public void addHumanPlayer() {
//         CompositeFieldRange compRange = new CompositeFieldRange(_table, new WeightTable(_table));
//         addPlayer(new HumanPlayer(_table), compRange);
//     }
//        
//     public IPlayer addGUIHumanPlayer() {
//         CompositeFieldRange compRange = new CompositeFieldRange(_table, new WeightTable(_table));
//         HumanPlayerGUI gui = new HumanPlayerGUI(_table);
//         addPlayer(gui, compRange);
//         return gui;
//     }
//     
//     public void addSimpleAgent() {
//         String id = _agentNames[_nameCount++];
//         addAgent(new HeuristicPPotEval(), new SimpleStrategy(_table), id);
//     }
//     
//     public IPlayer addBlankNeuralNetAgent() {
//         String id = _agentNames[_nameCount++];
//         return addAgent(new HeuristicPPotEval(), new NeuralNetStrategy(_table), id);
//     }
//     
//     public IPlayer addTrainedNeuralNetAgent(String name) {
//         PlayerAgent agent = addAgent(new HeuristicPPotEval(), new NeuralNetStrategy(_table), name);
//         NeuralNetStrategy strat = (NeuralNetStrategy) agent.bettingStrategy();
//         strat.networkFromFile(name);
//         return agent;
//     }
//     
//     private PlayerAgent addAgent(IHandEvaluator eval, IBettingStrategy strat, String id) {
// 
//         CompositeFieldRange compRange = new CompositeFieldRange(_table, new WeightTable(_table));
//         PlayerAgent agent = new PlayerAgent(_table, id, new CompoundHandEval(new PreflopHandGroups(), eval), compRange, strat);
//         addPlayer(agent, compRange);
//         return agent;
//     }
//     
//     private void addPlayer(IPlayer player, CompositeFieldRange compRange) {
//         _table.addPlayer(player);
//         for (IPlayerRange range : _playerRanges) {
//             compRange.addRange(range);
//         }
//         IPlayerRange ownRange = new PlayerWTRange(player.id(), new WeightTable(_table), buildFreqTable(player.id()),
//                 new CompoundHandEval(new PreflopHandGroups(), new HeuristicPPotEval()), compRange, _table);
//         for (CompositeFieldRange fieldRange : _fieldRanges) {
//             fieldRange.addRange(ownRange);
//         }
//         _fieldRanges.add(compRange);
//         _playerRanges.add(ownRange);
//     }
//     
//     
//         
//     public static IDeck buildDeck() {
//         return new CardDeck();
//     }
// 
//     public static IHand buildHand(List<Card> holeCards, List<Card> board) {
//         return new Hand(holeCards, board);
//     }
// }


// Path: src/shaft/poker/game/Lucki.java
import javax.swing.JFrame;
import shaft.poker.factory.PokerFactory;

/*
 * The MIT License
 *
 * Copyright 2013 Thomas Schaffer <thomas.schaffer@epitech.eu>.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package shaft.poker.game;


/**
 *
 * @author Thomas Schaffer <thomas.schaffer@epitech.eu>
 */
public class Lucki {
    public static void main(String[] args) {
       
        PokerFactory factory = new PokerFactory();