Pages:
Author

Topic: [POK] Pokercoin Reboot - 100,000 POK Premine DESTROYED! - new: 5 Cards per Block (Read 5480 times)

member
Activity: 98
Merit: 10
The Genesis Hash Straight Poker Tournament has not gotten any new entries for a bit.  As it stands now, the top 10 winning hands are from, in order: 6coin, Pokercoin, Realcoin, Bytecoin, Geist Geld, Fastcoin, Dragoncoin, Bottlecaps, Weedcoin, Memecoin.   

member
Activity: 98
Merit: 10
where is Pokercoin 1.0.2 client?

The source for Pokercoin 1.0.2 client is at:   https://github.com/superblocks/Pokercoin

There are no windows binaries for this version yet.   Anyone want to compile one?
hero member
Activity: 1904
Merit: 510
where is Pokercoin 1.0.2 client?
member
Activity: 98
Merit: 10
where to sell pok?

On this forum? Smiley    There's no exchanges yet that support POK.  If some pop up, they are sure to receive bounty coins.

member
Activity: 70
Merit: 10
member
Activity: 98
Merit: 10
pool?

No pool yet.   If someone were to set one up, I'm sure there'd be bounty coins for it.
member
Activity: 70
Merit: 10
member
Activity: 98
Merit: 10
New! - Pokercoin 1.0.2 code now released!  See https://github.com/superblocks/Pokercoin

This update adds a checkpoint at block #15000, and a new rpc command: getcards.

getcards draws 5 playing cards based on a block hash.  It's also added to getinfo, based on the current block hash:

Code:
    "blocks" : 15691,
    "cards" : "Ace of Diamonds, Queen of Spades, 8 of Diamonds, 10 of Hearts, 4 of Hearts, ",

Example usage:   Get a hand from the pokercoin genesis hash:
Code:
# ./pokercoind getblockhash 0
5b08cbe328392be8151f5deec2dc92e7609dcbd20e0dac335904ccf538df68e8

# ./pokercoind getcards 5b08cbe328392be8151f5deec2dc92e7609dcbd20e0dac335904ccf538df68e8
5 of Hearts, Queen of Hearts, 2 of Hearts, 3 of Hearts, 2 of Hearts,

The getcards command will take in any well formed hash: 64 chars long, only hexademical characters.

Cards are determined by splitting the block hash into 2 character segments.  For each segment, first character is the card, and second character is the suit.  Here's the code to show how the cards are decided:

Code: (https://github.com/superblocks/Pokercoin/blob/master/src/bitcoinrpc.cpp#L403)
//
// Get a Playing Card - version 0.0.1
//
std::string getcard( char c )
{
    switch( std::tolower(c) ) {
        case '1': return "Ace";
        case '2': return "2";
        case '3': return "3";
        case '4': return "4";
        case '5': return "5";
        case '6': return "6";
        case '7': return "7";
        case '8': return "8";
        case '9': return "9";
        case 'a': return "10";
        case 'b': return "Jack";
        case 'c': return "Queen";
        case 'd': return "King";
        default: case 'e': case 'f': case '0': return "Joker";
    }
}

//
// Get the Suit of a Playing Card - version 0.0.1
//
std::string getsuit( char c )
{
    switch( std::tolower(c) ) {
        default: return "ERROR";
        case '0': case '1': case '2': case '3': return "Clubs";
        case '4': case '5': case '6': case '7': return "Diamonds";
        case '8': case '9': case 'a': case 'b': return "Hearts";
        case 'c': case 'd': case 'e': case 'f': return "Spades";
    }
}

//
// Get a Hand of Playing Cards - version 0.0.1
//
std::string GetCards( std::string hash, int limit = 5 )
{
    if( hash.length() != 64 ) { return "ERROR: hash is not 64 chars long"; }
    std::string deck, check;
    int count = 0;
    for (int i = 0; i < hash.length(); i+=2) {
        check = hash.substr(i,2);
        if( check[0] == '0' || check[0] == 'e' || check[0] == 'f' )
            continue;
        deck.append( getcard(check[0]) ).append( " of " ).append( getsuit(check[1]) ).append( ", " );
        count++;
        if( count == limit )
            break;
    }
    if( count != limit )
        deck.append( "ERROR: not enough valid cards in the deck" );
    return deck;
}


//
// Get a Hand of Playing Cards - RPC call - version 0.0.1
//
Value getcards(const Array& params, bool fHelp)
{
    if (fHelp || params.size() != 1)
        throw runtime_error(
            "getcards \n"
            "Returns a hand of playing cards.");

    std::string strHash = params[0].get_str();

    return GetCards(strHash);
}

All very beta and  proof-of-concept now, but may be something that can be built upon for gaming Wink


legendary
Activity: 2898
Merit: 1017
so this is how bitcoin mining looked like a year ago.. easy coins.. Cheesy
member
Activity: 98
Merit: 10
I think this would be better named as SolitaireCoin.  After I compiled a windows wallet (since one wasn't provided) and mined for a bit, I soon figured out I was the only one sitting at the card table mining.  So I quite mining after a couple blocks but came back a few hours later to see if there was any new action.  No signs of anybody sitting at the card table and saw that no hands were even dealt since I left.

Sometimes the table is very slow, sometimes there are a few players.    One or two have been active lately for sure, driving the block height up to #8375 and climbing.   Difficulty currently at measly 0.008.

(and note that the old version 1.0.0 clients still work on the rebooted chain)
member
Activity: 98
Merit: 10
If you started the blockchain from zero why didnt you just alter subsidy function to get rid of special reward of block 2?

Because that would require a fork and new clients for everyone.    This way was quicker, and still lets all the version 1.0.0 clients participate.
Last time I checked, the bitcoin reference client tested for MAXIMUM reward, not minimal, so you can mine blocks with less or no reward.

Is this somehow changed or why did you kept the complication when restarting?

Hmm... you may be right about checking only for greater rewards, not less:

Code: (https://github.com/superblocks/Pokercoin/blob/master/src/main.cpp#L1441)
    if (vtx[0].GetValueOut() > GetBlockValue(pindex->nHeight, nFees))
        return false;

I'll have to remember that for the next dead altcoin reboot Wink

Although it doesn't seem as dramatic and easily validated as sending the premine to a destroyer address.
member
Activity: 81
Merit: 10
I think this would be better named as SolitaireCoin.  After I compiled a windows wallet (since one wasn't provided) and mined for a bit, I soon figured out I was the only one sitting at the card table mining.  So I quite mining after a couple blocks but came back a few hours later to see if there was any new action.  No signs of anybody sitting at the card table and saw that no hands were even dealt since I left.
hero member
Activity: 672
Merit: 500
Why? there is already a CasinoCoin.

Pokercoin has less value, it can be only used for poker, Casinocoin in more universal  Grin
legendary
Activity: 1442
Merit: 1005
If you started the blockchain from zero why didnt you just alter subsidy function to get rid of special reward of block 2?

Because that would require a fork and new clients for everyone.    This way was quicker, and still lets all the version 1.0.0 clients participate.
Last time I checked, the bitcoin reference client tested for MAXIMUM reward, not minimal, so you can mine blocks with less or no reward.

Is this somehow changed or why did you kept the complication when restarting?
legendary
Activity: 2674
Merit: 2965
Terminated.
It shouldn't have been rebooted.
Let the crap die.
member
Activity: 97
Merit: 10
legendary
Activity: 1078
Merit: 1001
"difficulty" : 0.07014845,

Oh my, pokercoin reboot is slowing down.   Did you just mine #7085, eh?

Code:
Block 7085 - 2013-08-27 17:22:26
Block 7084 - 2013-08-26 03:44:59

Chain stays at 0.07 diff for the next 23 blocks. 


nope

"height" : 6951,
member
Activity: 98
Merit: 10
"difficulty" : 0.07014845,

Oh my, pokercoin reboot is slowing down.   Did you just mine #7085, eh?

Code:
Block 7085 - 2013-08-27 17:22:26
Block 7084 - 2013-08-26 03:44:59

Chain stays at 0.07 diff for the next 23 blocks. 
legendary
Activity: 1078
Merit: 1001
"difficulty" : 0.07014845,
member
Activity: 98
Merit: 10
so anyone is mining this coin?

Very few miners currently, and they are not pushing much hashing power.

Network is at block #5386 now, with diff of only 0.011.
Pages:
Jump to: