how to start working on this code....
im getting very conused how do u suggest me to go about each guy must write the code and the codes r put against each other..... * The player can watch the opponent’s number after the completion of the round. Assume that player A chooses x and player B chooses y. This number may vary from 1 to 65535. If x = y, no one gets any coins. If x > y, then player A wins the round and gets [log2(x)] coins if x ≤ 2y or else B wins the round and gets [log2(y)] coins where [ ] represents the greatest integer function. The game consists of 2500 rounds. K-Rule : Each player must choose a series of non-decreasing numbers. The series must have a length of atleast k numbers (individually for each player). For example, suppose A chooses the numbers x1, x2, x3 … Then, x1 ≤ x2 ≤ x3 ≤ … ≤ xk is required. And then x11 < x10 is allowed. if xk+1 < xk, then the series begins again and xk+1 ≤ xk+2 ≤ xk+3 ≤ … ≤ x2k is required. Else, there will be some j for which xj+1 < xj which is where the previous series ends and new one begins and xj+1 ≤ xj+2 ≤ … ≤ xj+k is required. For example if k = 3, then 1, 2, 3, 4, 1, 2, 3, 1, 4, 6, 8, 9, 1 is allowed. But the series 1, 2, 3, 4, 5, 1, 2, 1 is not allowed. the value of k is 10.
1) In which language you want to write the code.
2) If i am the developer of that game, I start from K-rule.
feel free to contact rags.games@gmail.com
2) If i am the developer of that game, I start from K-rule.
feel free to contact rags.games@gmail.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement