Nxt Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client 1.11.10 - NEW RELEASE: Ardor 2.0.5e TestNet - The Ignis ICO is over!! Ardor genesis snapshots will happen at Nxt block 1,630,000 (expected for 25th December)

Pages: [1]

Author Topic: Monopoly Game Powered by Nxt  (Read 1675 times)

btc2nxt

  • Full Member
  • ***
  • Offline Offline
  • Posts: 211
    • View Profile
  • Karma: +42/-1
Monopoly Game Powered by Nxt
April 04, 2017, 02:22:23 am

   There are some computer games using crypto-currencies, like Crytokingdom, Vox, Augur and so on.  Huntercoin is a game on blockchain launched in 2014 based on bitcoin source code. Cutting edge of the Huntercoin is human mining. In this introduction, I will introduce Monopoly like game powered by Nxt chain.

   Nearly all coins will be distributed by FSM which is similar to AT( automated machine), after players jump to the location of the coins in next block, they will share the coins. There are lands in the game too, so players can buy lands to build hotel, restaurants, healthy club and weapon factory, which can be traded in asset market in the game also.

Features:
Total supply: 1 000 000 000
Premine: 4% (for forge use and marketing)
Block time: 1 minute
Distribution per block: 600 (100 to dev, Nxt Foundation and marketing)
Map: 100*100
Lands: 76 (40 for hotels, 30 restaurants, 1 health club, 1 martial art center, 1 weapon factory…)
Role of player: jumper (collect coins), boss (owner of hotels), worker (build hotels and so on)

How to play the Monopoly game
1.   Distribute coins
FSM sends 5 packages coins total 500 to different location, every package has 100 coins.
2.   Become a jumper
User with over 1000coins can become a player, after sending a transaction of jumper setting. Every player has two life value: Collection Power(CP), Attack Power(AP), Defense Value(DV), Healthy Index(HI), which are 100 in default.
3.   Collect coins
Jumper can collect coin once every ten blocks, by jumping to the location of a coin package in his AP range. Next block, will share the coins with other player if more than one players jump to the location too. If over 100 players have jump to the same location, after 100 transactions are invalid, so they can not share the coins.
In the same time, CP of the player will minus 1 till lowest 1. If CP is less than 50, the player can not collect coins over distance of 51. If CP is one, that means the play only cannot jump but walk a step every time.
4.   Buy a land
User can buy a land, after pay the amount coins to the seller.
5.   Become a boss
When an owner funds enough coins for project of the land, the owner becomes a boss. A hotel has 40 single rooms, and a restaurant has 30 single tables.

6.   Become a worker
User with over 1000 coins can become a worker, after sending a transaction to a building site.
7.   Build Hotel on a land
Workers do building work by sending a working transaction every 10 minutes, then in next block they will get 3 shares of the land. Building others like it too.
8.   Check in a hotel, eat in a restaurant
If a player’s AP is equal to zero, the player will enter into recovery mode, which means the player cannot move within 48 hours (2880 Blocks). When time out, the player can act normally, and the AP will restore to initial value, that is 100.
But if the player sends coins to a hotel(Check In), the player’s CP will increase to maximum healthy index, which initial value is 100, and has to sleep for 8 hours. Same as eating in a restaurant, the player’s CP will increase 25, but every two hours the player only can eat once.
9.   Attack other player
When two players are in the same location, one player may attack the other players. The attacker’ AP will minus 5, and the victim’s DV will minus 25. If a player’s DV is below zero, the player will be in coma for 24 hours. When the victim wakes up, DV will restore with HI.
10.   Healthy Club
Every player can use healthy club once a day for 1 hour, after that the player’s healthy index will increase 2.5 up to maximum healthy index 200.
11.   Martial Center
Player practices in Martial center one hour every day for 40 days, then the player will get a Iron Fist, which increate player’s AP to 200. If the player attacks another player, the victim’s DV will minus 50.
12.   Weapon Factory
Weapon Factory only makes an armor, which improves player’s DV to 200.  Everyday the weapon factory only sells 12 armors to players.
« Last Edit: October 17, 2017, 01:30:41 am by btc2nxt »

apenzl

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2477
    • View Profile
    • Nxter.org
  • Karma: +242/-10
Re: Monopoly Game Powered by Nxt
April 04, 2017, 12:19:47 pm

Interested :)
And good to see you here.

And the monopoly coins would be tradeable for NXT?

Looking forward to hearing more, this sounds a lot like fun. And a race towards being the ones who build the 10, 11 & 12.  ;D


btc2nxt

  • Full Member
  • ***
  • Offline Offline
  • Posts: 211
    • View Profile
  • Karma: +42/-1
Re: Monopoly Game Powered by Nxt
April 05, 2017, 02:23:54 am

Interested :)
And good to see you here.

And the monopoly coins would be tradeable for NXT?

Looking forward to hearing more, this sounds a lot like fun. And a race towards being the ones who build the 10, 11 & 12.  ;D
nice to see you  :D
will create an asset on Nxt

and i really hope Nxt Foundation can issue a game platform on Nxt or Ardor, because the biggest use cases are on games.

btc2nxt

  • Full Member
  • ***
  • Offline Offline
  • Posts: 211
    • View Profile
  • Karma: +42/-1
Re: Monopoly Game Powered by Nxt
April 06, 2017, 01:13:23 am

become a innkeeper

1. Build a Hotel(20 single room)
   20 workers work 40 days, that is 40*20*144 =115 200 bricks needed
a brick = 5 coins pay to a worker
cost : 115 200 *5 = 576 000
land cost: 200 000
total cost: 576 000 + 200 000 = 776 000

2. income
24h /4 = 6 turn
day income: 20 rooms*6  100(room rate) =12 000
Month income: 12 000 * 30 = 360 000
Almost 2 month will make profit
« Last Edit: April 07, 2017, 03:32:26 am by btc2nxt »

btc2nxt

  • Full Member
  • ***
  • Offline Offline
  • Posts: 211
    • View Profile
  • Karma: +42/-1
Re: Monopoly Game Powered by Nxt
April 10, 2017, 01:27:03 am

source code was set up, https://github.com/btc2nxt/FSM
welcome comments

EvilDave

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1791
    • View Profile
    • NXT Foundation
  • Karma: +341/-40
Re: Monopoly Game Powered by Nxt
April 10, 2017, 08:20:04 am

Sounds like a brilliant idea, love to see more of it.
Nulli Dei, nulli Reges, solum NXT
NXT Donations: NXT-BNZB-9V8M-XRPW-3S3WD
We will ride eternal, shiny and chrome!

btc2nxt

  • Full Member
  • ***
  • Offline Offline
  • Posts: 211
    • View Profile
  • Karma: +42/-1
Re: Monopoly Game Powered by Nxt
September 11, 2017, 03:00:06 am

create test environment, and push commits to github.

btc2nxt

  • Full Member
  • ***
  • Offline Offline
  • Posts: 211
    • View Profile
  • Karma: +42/-1
Re: Monopoly Game Powered by Nxt
September 14, 2017, 02:54:21 am

crowdfunding use case test ok.

apenzl

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2477
    • View Profile
    • Nxter.org
  • Karma: +242/-10
Re: Monopoly Game Powered by Nxt
September 14, 2017, 07:03:10 am

btc2nxt

  • Full Member
  • ***
  • Offline Offline
  • Posts: 211
    • View Profile
  • Karma: +42/-1
Re: Monopoly Game Powered by Nxt
October 12, 2017, 01:07:16 pm

Airdrop test OK.

btc2nxt

  • Full Member
  • ***
  • Offline Offline
  • Posts: 211
    • View Profile
  • Karma: +42/-1
Re: Monopoly Game Powered by Nxt
October 17, 2017, 01:31:05 am

OP modified

btc2nxt

  • Full Member
  • ***
  • Offline Offline
  • Posts: 211
    • View Profile
  • Karma: +42/-1
Re: Monopoly Game Powered by Nxt
November 03, 2017, 03:21:38 am

anybody like to test it?

Arnaud.Dorthe

  • Newbie
  • *
  • Offline Offline
  • Posts: 7
    • View Profile
  • Karma: +0/-0
Re: Monopoly Game Powered by Nxt
November 04, 2017, 10:41:00 am

Yes
 :)
May the god of ArDor fill you with all joy and peace as you trust in him, so that you may overflow with hope by the power of the holy spirit

Nxt Account: NXT-E8JD-FHKJ-CQ9H-5KGMQ

Riker

  • Core Dev
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1732
    • View Profile
  • Karma: +431/-42
Re: Monopoly Game Powered by Nxt
November 05, 2017, 08:53:20 pm

Sure
NXT Core Dev
Account: NXT-HBFW-X8TE-WXPW-DZFAG
Public Key: D8311651 Key fingerprint: 0560 443B 035C EE08 0EC0  D2DD 275E 94A7 D831 1651

btc2nxt

  • Full Member
  • ***
  • Offline Offline
  • Posts: 211
    • View Profile
  • Karma: +42/-1
Re: Monopoly Game Powered by Nxt
November 06, 2017, 02:19:20 am

thanks a lot.

The passphrase of test account is : btc2nxt1

btc2nxt

  • Full Member
  • ***
  • Offline Offline
  • Posts: 211
    • View Profile
  • Karma: +42/-1
Re: Monopoly Game Powered by Nxt
November 06, 2017, 02:31:46 am

How to Test

FSM(Finite State Machine) is new design of AT(Automated Machine). Two years past, FSM still slept in the bitbucket and didn't improve. That is why i want to develop a game or some use cases to push FSM to real world or  solve some problem of businesses. When i have been coding , i found many bugs of FSM and need to improve.
Last week, i reached the first milestone which succeeded in aridropping coins, distributing dividend to asset holders.
Because i am not good at UI design, all tests are on http and offline. Actually I use Nxt1.3.5 NRS, and sometime the 1.3.5 UI too.

1. set nxt-default.properties file
nxt.apiServerEnforcePOST=false
nxt.isOffline=true

2. pre-distribute the coordinator(x,y)

http://127.0.0.1:9776/nxt?requestType=createATProgram&secretPhrase=1&atVersion=1&name=predistributeFSM&description=test&runType=SYSTEM_AT&machineCode=1e000000003d350103000000003203030113000000010000000000000033160101000000331701020000003500011200000034500412000000130000000413000000331601030000003317010400000035010112000000345004120000001300000004130000003316010500000033170106000000350201120000003450041200000013000000041300000033160107000000331701080000003503011200000034500412000000130000000413000000331601090000003317010a00000035000114000000061200000014000000345004120000001300000028&machineData=0000000000000000000000000000000000000000000000003c00000000000000000000000000000000000000000000003c000000000000003c000000000000003c00000000000000280000000000000028000000000000000200000000000000&variables=01000000050000000a000000000c00000048000000&feeNQT=200000000000&deadline=1440

variables means: will start run at height 12. After sleep 10 blocks, will run again at height 22.

account id of predistributeFSM  is 1, which is hardcoded in the source.
This FSM  will generate 5 coordinators for Airdrop FSM to delivery coins to the collectors.
http api: getPredistributeCoordinates  can show them.

version reserved
0100 0000
delayBlocks/ sleepBetween/ freezeWhenSameBalance/ startBlockHeight/ varBytes(72)
05000000 0a000000 00 0c000000 48000000

3. Airdrop FSM
http://127.0.0.1:9776/nxt?requestType=createATProgram&secretPhrase=btc2nxtTest1&atVersion=1&name=airdropFSM&description=test&runType=SYSTEM_AT&machineCode=1e000000001f35000300000000070000000003000000070000000003000000374903110000000000000001000000261100000035000100000000020f00000000000000060f0000000400000002100000000000000006100000000500000002140000000300000026140000003448031100000014000000375203120000000f0000001000000005140000001b12000000dc021300000002000000091300000012000000010a0000000000000000000000040a0000003447030f000000100000003302041300000005120000001e12000000e42a2114000000030000000f1a6700000028&machineData=00000000000000000100000000000000005cb2ec220000000500000000000000000000000100000000000000070000000000000000000000&variables=01000000050000000a000000001500000070000000&feeNQT=200000000000&deadline=1440

account of Airdrop FSM is 2, which's balance is zero, so must send many coins to it.

4. Be a collector
http://127.0.0.1:9776/nxt?requestType=gameEnter&secretPhrase=1&statusName=Collector&map=1&x=1&y=1&amountNQT=30000000000&feeNQT=100000000&deadline=1440

5. collect coin
http://127.0.0.1:9776/nxt?requestType=gameMove&secretPhrase=1&actionName=Collect&x=5&y=22&feeNQT=100000000&deadline=1440

6. issue an asset of a land
http://127.0.0.1:9776/nxt?requestType=issueAsset&secretPhrase=btc2nxt2&name=hotel&description=test&quantityQNT=270000000000&deadline=1440&decimals=8&feeNQT=1000000000000&landId=8

landId=5..8 are hotels
landId=9..12 are restaurants

After issue assets, lands of town bind to assets.

7.Be a workder
http://127.0.0.1:9776/nxt?requestType=gameEnter&secretPhrase=btc2nxt2&statusName=Worker&x=1&y=41&feeNQT=100000000&deadline=1440

8.Build a single room
http://127.0.0.1:9776/nxt?requestType=gameBuild&secretPhrase=btc2nxt2&asset=535298268338500849&x=6&y=41&feeNQT=100000000&deadline=1440

the asset id must be the id of land's asset.

The room need 5 Builds to finish.

9. shareRedeemFSM
http://127.0.0.1:9776/nxt?requestType=createATProgram&secretPhrase=btc2nxtTest1&atVersion=1&name=shareRedeemFSM&description=test&runType=SYSTEM_AT&machineCode=1e000000000f020400000001000000354603000000000205000000000000003753030300000004000000050000001b030000003501060000000000000000000000040600000034540304000000050000003351040900000005030000001e03000000e4020400000000000000040400000028&machineData=000000000000000005000000000000000000000000000000&variables=01000000000000000a000000001000000040000000&feeNQT=200000000000&deadline=1440

shareRedeemFSM will auto send shares to workers, depends on workers' works. Because the asset is not create by shareRedeemFSM, we have to transfer asset to it, which has account id 3.

hareRedeemFSM will run at height 16, and continue to run in 10 blocks.

version reserved
0100 0000
delayBlocks/ sleepBetween/ freezeWhenSameBalance/ startBlockHeight/ varBytes 8*8=
00000000 0a000000 00 10000000 40000000

10. Check in
http://127.0.0.1:9776/nxt?requestType=gameConsume&secretPhrase=2&actionName=CheckIn&x=6&y=41&amountNQT=3000000000&asset=535298268338500849&feeNQT=100000000&deadline=1440

A player's CollectPower will restore to 100 after check in, and has to sleep 4 hours. All amountNQT goes to dividendFSM's account, which id is 4.

11. dividendFSM
http://127.0.0.1:9776/nxt?requestType=createATProgram&secretPhrase=btc2nxtTest1&atVersion=1&name=dividendFSM&description=test&runType=SYSTEM_AT&machineCode=1e000000000f02040000000100000035460300000000020500000000000000010600000000000000000000003755030300000004000000050000001e030000000b1ac900000004060000003456030400000005000000020b000000080000001b0b0000005f3757030c0000000b0000000200000009070000000c000000020c00000007000000010d0000000000000000000000040d0000003458030b0000000d0000001b070000001b08080000000c000000330204080000001a9300000005030000001e0300000083020400000000000000040400000028&machineData=000000000000000005000000000000000300000000000000&variables=01000000000000000a000000002000000058000000&feeNQT=200000000000&deadline=1440

dividendFSM will run at height 32 to distribute dividend to the workers by their shares of the asset.

version reserved
0100 0000
delayBlocks/ sleepBetween/ freezeWhenSameBalance/ startBlockHeight/ varBytes 11*8=
00000000 0a000000 00 20000000 58000000

LimKi54

  • Newbie
  • *
  • Offline Offline
  • Posts: 6
    • View Profile
  • Karma: +0/-0
Re: Monopoly Game Powered by Nxt
November 09, 2017, 11:25:39 am

good news for such fans Monopolies like me )

btc2nxt

  • Full Member
  • ***
  • Offline Offline
  • Posts: 211
    • View Profile
  • Karma: +42/-1
Re: Monopoly Game Powered by Nxt
November 11, 2017, 02:37:14 pm

TestNet is OK.

btc2nxt

  • Full Member
  • ***
  • Offline Offline
  • Posts: 211
    • View Profile
  • Karma: +42/-1

[TESTNET] Monopoly Game | Smart Contract | Fork Nxt

Monopoly is a block chain game based on Nxt 1.3.5 codebase with smart contract named FSM(Final State Machine), which is new design of AT(Automated Machine).

50% coins will be distributed by Airdrop FSM , after players jump to the location of the coins in next block, they will share the coins. There are lands in the game too, so players can buy lands(Asset) to build hotel, restaurants, which can be traded in asset market in the game also.

Features:
Total supply: 1 000 000 000
Premine:
   10%: NxtAT Asset holders.  (10 NxtAT Asset swap 1 FSMCoin)
   10%: HZ holders. (10 HZ swap 1 FSMCoin)
   20%: Development (UI design), Testing.
   10%: Marketing (website, nodes).

Block time: 1 minute
Distribution per 10 blocks: 6*100 (100 to FSM Foundation)
Map: 100*100
Lands: 68 (4 for hotels, 4 restaurants, 1 notary office, 1 court of justice…)
Role of player: collector (collect coins), worker (build hotels and so on).

Bounties:
UI design 5,000,000
Testing 1,000,000
Node 100,000/per year

Road Map:
2018 Q1 guess game

MadCow

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 87
    • View Profile
  • Karma: +17/-0

[TESTNET] Monopoly Game | Smart Contract | Fork Nxt

Monopoly is a block chain game based on Nxt 1.3.5 codebase with smart contract named FSM(Final State Machine), which is new design of AT(Automated Machine).

50% coins will be distributed by Airdrop FSM , after players jump to the location of the coins in next block, they will share the coins. There are lands in the game too, so players can buy lands(Asset) to build hotel, restaurants, which can be traded in asset market in the game also.

Features:
Total supply: 1 000 000 000
Premine:
   10%: NxtAT Asset holders.  (10 NxtAT Asset swap 1 FSMCoin)
   10%: HZ holders. (10 HZ swap 1 FSMCoin)
   20%: Development (UI design), Testing.
   10%: Marketing (website, nodes).

Block time: 1 minute
Distribution per 10 blocks: 6*100 (100 to FSM Foundation)
Map: 100*100
Lands: 68 (4 for hotels, 4 restaurants, 1 notary office, 1 court of justice…)
Role of player: collector (collect coins), worker (build hotels and so on).

Bounties:
UI design 5,000,000
Testing 1,000,000
Node 100,000/per year

Road Map:
2018 Q1 guess game


This looks very interesting!

Thanks for the airdrop on NxtAT & HZ holders :)
Pages: [1]