Find Jobs
Hire Freelancers

A.I. for a game called Risk

$100-500 USD

Completed
Posted almost 19 years ago

$100-500 USD

Paid on delivery
Enclosed is the source code for a game called Risk. To run this, run the setup.msi. What that will do is to install all the necessary components and put the source code in a folder called C:\games which can be changed There is a class called clsriskai Currently, I have the level 1 which is beginners where the computer just pick random moves for attacking, etc. What is needed is a level 2 and 3. For level 2, the computer should make just average moves (average intelligence). For level 3, the computer should gang up on the human player and make it as difficult as possible for the human player to win. The functions needed are on the class file. If there are any additional modules you have to create, that would be fine. More info in the deliverables ## Deliverables The functions needed are these: 1. missioncardtoplay this will need to return a mission card to play (when he's completed a mission). if the gametype is not mission, then this is ignored 2. returnriskcardlist this will return a collection of three risk cards to turn in to get additional reinforcements. For level 1, just have it pick from random as long as its valid. For levels 2 and 3, avoiding wilds as much as possible. If there are 5 cards, then must have a collection of three cards. Valid ones are infantry, calvalry, and artillery or three of one of them. wilds can be used for any one of them 3. computerattack (attackfrom, attackto, howmany) if the computer will not attack, then attackfrom will return 0 the three parameters will start out at 0 and be filled in by the A.I. howmany is how many armies will be used in the attack. for levels 2 and 3, use the maximum if attacking (which is 3 even if you have more than 4 armies 4. computermove (movefrom, moveto, howmany) if the computer will not move, then the movefrom will be 0 to find out the possible moves from a location (where he owns), use this function [login to view URL](territorynumber) which will return a list of numbers that are connected together the computer is allowed one free move per turn (after attacking) 5. computerplacearmies (howmany) howmany will be a parameter sent in which is how many armies can be placed this would need to return a list of territories to place the armies in. each one would place one army. if one territory will be placing 4 armies, then that territory will show up four times 6. armiestotransferafterbattle this will return how many armies will be transferred after battle from the old location to the conquered territory What is needed is the source code only. The changes should be done to the [login to view URL] if there are any additional modules or classes used, then that would have to be included as well. Must remain in VB 6.0. If you do a good job here, I will have other projects because I have other games that the A.I. needs to be completed. Let me know if you have any questions. 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive 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 Windows XP Home Edition, Windows 98
Project ID: 3767568

About the project

4 proposals
Remote project
Active 19 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$200.60 USD in 7 days
5.0 (21 reviews)
4.8
4.8
4 freelancers are bidding on average $262 USD for this job
User Avatar
See private message.
$510 USD in 7 days
4.9 (76 reviews)
6.3
6.3
User Avatar
See private message.
$170 USD in 7 days
4.9 (9 reviews)
3.5
3.5
User Avatar
See private message.
$165.75 USD in 7 days
4.6 (2 reviews)
1.4
1.4

About the client

Flag of AUSTRALIA
Sydney, Australia
5.0
781
Payment method verified
Member since Apr 9, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.