Esempio n. 1
0
 public PlayersController()
 {
     PlayerRepo = new Repository.MockPlayerRepo(@"E:\Repos\bitpoker\BitPoker.Repository\mockplayers.json");
 }
Esempio n. 2
0
 public PlayersController(Repository.IPlayerRepository repo)
 {
     PlayerRepo = repo;
 }
Esempio n. 3
0
        /// <summary>
        /// Console for test code
        /// </summary>
        /// <param name="args"></param>
        public static void Main(string[] args)
        {
            Console.WriteLine("{0} This is a console client for bitpoker, making REST or JSON RPC calls to the host", DateTime.UtcNow);

            Server server = new Server();

            server.MessageEvent += Server_MessageEvent;

            Int16 restPort = 8080; ///for rest
            Int16 tcpPort  = 5555;

            if (args == null || args.Length < 1)
            {
                Log(String.Format("tcp://127.0.0.1:{0}", tcpPort));
                args = new string[] { carol.ToString(), String.Format("tcp://127.0.0.1:{0}", tcpPort) };
            }

            Log("Starting tcp server");
            Task task = new Task(() => server.Listen(args[0]));

            task.Start();
            Log("TCP server running");

            String baseUrl = String.Format("http://*****:*****@"C:\Users\lucas.cullen\Source\Repos\bitpoker\headsupcolddeck.txt");

            Mnemonic mnemo = new Mnemonic("test", Wordlist.English);

            var key = mnemo.DeriveExtKey();
            var x   = key.PrivateKey;

            var s = x.GetBitcoinSecret(Network.Main);
            var b = s.GetAddress();


            Console.WriteLine(b);
            Console.ReadKey();

            IDeck deck = new FiftyTwoCardDeck();

            deck.Shuffle(null);

            DumpToDisk(deck.Cards, "deck.txt");
        }