TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
raj yadav
NA
10
2.4k
Design business house game
Jun 23 2018 6:21 AM
Question statement- design a board game as-
Max three players can play the game and minimum two players can play. each player will have minimum balance of 1000 and each player will have 10 chances
Board cell can have-
Empty-E
Treasure-T
Jail-J
Hotel-H
->suppose in player is landed on Jail when dice is thrown-
player have to pay 150 from its balance
->suppose in player is landed on Empty when dice is thrown-
player wont gain or loose any thing
->suppose in player is landed on treasure when dice is thrown-
200 will be added to player balance
suppose in player is landed on Hotel when dice is thrown (this is special type of board cell)-
if hotel is not sold user have to pay 200 and buy the hotel
if hotel is owned by other player then player have to pay 50 as rent so 50 will be deducted from his balance
if player landed to its own hotel then he wont get any thing
when both player chances get over we have to stop the game and we have to show final balance of each player (condition before chances get over if any of the players balance will go in negative or 0 we have to stop the game and display the balance of each player)
For example board data- char[] cellsarr = { 'E', 'E', 'J', 'H', 'T', 'J', 'T', 'E', 'E', 'H', 'J', 'T', 'H', 'E', 'E', 'J', 'H', 'E', 'T', 'J', 'E', 'E', 'H', 'J', 'T', 'H', 'J', 'E', 'E', 'J', 'H', 'E', 'T', 'J', 'T', 'E', 'E', 'H', 'J', 'T', 'E', 'H', 'E' };
Dice
int[] Dice = { 4, 4, 4, 6, 7, 8, 5, 11, 10, 12, 2, 3, 5, 6, 7, 8, 5, 11, 10, 12, 2, 3, 5, 6, 7, 8, 11, 10, 12 };
Above is game sample. proper design and class implementation is focus and stick to open close principle
Reply
Answers (
0
)
how to desgine databse for a blog
i would like expert in c#.net fundamentals