Find Jobs
Hire Freelancers

restaurant pacifier

$30-5000 USD

已完成
已发布超过 20 年前

$30-5000 USD

货到付款
Independent Study Program #1 - Spring 2004 The Restaurant Pacifier (A warm-up program) Some restaurants provide each table with a small game that their customers can play while waiting (a long time?) for service. This game involves a board with 15 holes arranged as follows: The game starts with all the holes but one filled with golf tees. A move consists of removing one tee from its hold, jumping over an adjacent tee, and landing in the open hole that is collinear and adjacent to the jumped tee. Jumps can be horizontal or diagonal. The jumped tee is removed from the board. Play continues until no more legal moves are available. The game is won if there is only one tee remaining on the board. Write a C++ program to implement this game. Your program should ask the user which location is empty at the beginning. Use a two dimensional array to hold the data so that the top location is at [0][0] and the lower right location is at [4][4]. You should display the board in such a way that the user can see the current position. Be sure that your display is symmetric; that is, it looks like the diagram given above rather than the one given below: Your messages to the user should be clear and concise; I will be running your program and should not have to hunt for the proper input in your code. This also means you have to determine what user input you need in order to be able to properly process the user’s desired move. An input of -1 from the user should terminate the game at any time. Your program should check for the legality of a submitted move and reject the move if it is not legal. Your program should also be able to detect if the game is won (or lost!) Due date: midnight Feb. 2, 2004 ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform microsoft visual c++ complier windows 98
项目 ID: 3073154

关于此项目

2提案
远程项目
活跃20 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
See private message.
$17 USD 在3天之内
4.9 (212条评论)
5.8
5.8
2威客以平均价$26 USD来参与此工作竞价
用户头像
See private message.
$34 USD 在3天之内
5.0 (20条评论)
3.5
3.5

关于客户

UNITED STATES的国旗
United States
4.9
3
会员自1月 18, 2004起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。