Bitcoin Forum
November 07, 2024, 01:38:57 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: [POK] Pokercoin Reboot - 100,000 POK Premine DESTROYED! - new: 5 Cards per Block  (Read 5479 times)
Lauda
Legendary
*
Offline Offline

Activity: 2674
Merit: 2965


Terminated.


View Profile WWW
August 27, 2013, 09:27:06 PM
 #21

It shouldn't have been rebooted.
Let the crap die.

"The Times 03/Jan/2009 Chancellor on brink of second bailout for banks"
😼 Bitcoin Core (onion)
BombaUcigasa
Legendary
*
Offline Offline

Activity: 1442
Merit: 1005



View Profile
August 27, 2013, 09:55:23 PM
 #22

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?
X68N
Hero Member
*****
Offline Offline

Activity: 672
Merit: 500


View Profile
August 28, 2013, 03:28:16 AM
 #23

Why? there is already a CasinoCoin.

Pokercoin has less value, it can be only used for poker, Casinocoin in more universal  Grin

YOBIT IS SCAM , YOBIT IS SCAM , YOBIT IS SCAM meine Steuerdatei:
https://bitcointalk.org/index.php?topic=612741.msg19244732#msg19244732
bandjhughes
Member
**
Offline Offline

Activity: 81
Merit: 10


View Profile
August 28, 2013, 03:57:21 AM
 #24

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.
hotcoldcoin (OP)
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
August 29, 2013, 05:55:50 PM
 #25

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.

hotcoldcoin (OP)
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
August 29, 2013, 05:58:12 PM
 #26

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)

mishax1
Legendary
*
Offline Offline

Activity: 2898
Merit: 1017


View Profile
August 30, 2013, 10:19:46 AM
 #27

so this is how bitcoin mining looked like a year ago.. easy coins.. Cheesy
hotcoldcoin (OP)
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
September 06, 2013, 09:26:02 AM
Last edit: September 06, 2013, 09:46:18 AM by hotcoldcoin
 #28

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 <hash>\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



2833043517
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
September 06, 2013, 10:51:01 AM
 #29

pool?
hotcoldcoin (OP)
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
September 06, 2013, 11:05:39 AM
 #30

pool?

No pool yet.   If someone were to set one up, I'm sure there'd be bounty coins for it.

2833043517
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
September 09, 2013, 10:44:28 AM
 #31

where to sell pok?
hotcoldcoin (OP)
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
September 10, 2013, 06:05:50 AM
 #32

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.


ropyu1978
Hero Member
*****
Offline Offline

Activity: 1904
Merit: 510


View Profile
September 10, 2013, 06:36:08 AM
 #33

where is Pokercoin 1.0.2 client?
hotcoldcoin (OP)
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
September 12, 2013, 10:01:49 AM
 #34

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?

hotcoldcoin (OP)
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
September 12, 2013, 10:03:58 AM
 #35

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.   


Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!