Find Jobs
Hire Freelancers

Compute polygon and chess problems

$30-250 USD

In Progress
Posted about 8 years ago

$30-250 USD

Paid on delivery
*Must be done in 24 hrs* Problem 1: ---------- Implement the function computePolygonArea :: [(Double,Double)] -> Double that computes the area of the polygon. The formula for the area of the polygon is given at: [login to view URL] You should report an error when the list is empty or contains only one point. You should implement the function det :: (Double,Double) -> (Double,Double) -> Double that computes the determinate of the 2 x 2 matrix whose columns are given by the first and second arguments, respectively. You should use the det function in your computation of the polygon area. Problem 2: ---------- See [login to view URL] for more details Recall we only consider the situation where there is only a single piece on the board Given the definitions --------------------------------------------------------------- type File = Char -- column index -- valid files are 'a','b',...,'h' type Rank = Int -- row index -- valid ranks are 1,2,...8 type Position = (File,Rank) data Color = Black | White deriving (Eq,Show) data Piece = King | Queen | Rook | Bishop | Knight | Pawn deriving (Eq,Show) --------------------------------------------------------------- implement the functions --------------------------------------------------------------- isLegalPosition :: Position -> Bool isLegalMove :: Color -> Piece -> Position -> Position -> Bool --------------------------------------------------------------- that check whether a position is a legal board position and whether a move is legal.
Project ID: 9609911

About the project

3 proposals
Remote project
Active 8 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
I am a computer science professional with excellent skills in PHP, XML, regexp, and data parsing, and some other language and tools. Please please see reviews on my profile. It would be my pleasure to do your HW.
$70 USD in 1 day
4.8 (57 reviews)
5.7
5.7
3 freelancers are bidding on average $80 USD for this job
User Avatar
Hi i can help u with this assignment ......................................... ................... ..........
$166 USD in 1 day
4.5 (3 reviews)
2.7
2.7
User Avatar
Hello, I am good candidate, because finished computer science, mathematical faculty. I play chess. I passed algebra, so i know what Matrix is. I am in top 40 programmers from Poznan in stackoverflow. Choosing my, you obtain quality and punctuality.
$111 USD in 1 day
5.0 (1 review)
1.9
1.9
User Avatar
Hello. How are u. I saw your description and attached files. I understood it and can do it well. I have done several project like this. I'm an expert in Data Structures and Algorithms. And I know Java ,C/C++,C# and Python well. I'm interested this project. I want to discuss with you about this project. If it's possible,please contact me and explain more detail. I wait your good reply. Bye.
$60 USD in 1 day
5.0 (4 reviews)
1.7
1.7

About the client

Flag of UNITED STATES
Orlando, United States
5.0
3
Payment method verified
Member since Oct 1, 2012

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.