[SOLVED] {-# LANGUAGE ScopedTypeVariables #-}

$25

File Name: {-#_LANGUAGE_ScopedTypeVariables_#-}.zip
File Size: 339.12 KB

5/5 - (1 vote)

{-# LANGUAGE ScopedTypeVariables #-}

Module: AI
Description : AIs for Conseuctive Dots

Copyright By Assignmentchef assignmentchef

Copyright : (c) 2022 ANU
License : AllRightsReserved
module AI where

import ConsecutiveDots

| Type of AI functions you can choose to write.
data AIFunc
= NoLookahead (GameState -> Move)
^ Simple AIs that do not need lookahead.
| WithLookahead (GameState -> Int -> Move)
^ AIs that want to look ahead. The assignment framework will
call the function over and over with increasing integer
arguments @1, 2, 3, @ until your AIs time limit is up.

| The table of all AIs that your assignment provides. The AI named
default in this table is the one your tutor will dedicate most of
their attention to marking. DO NOT submit with firstColumn as default.
ais :: [(String, AIFunc)]
ais = [(default, WithLookahead alphabetaEntry)
,(greedy, NoLookahead greedy)
,(first, NoLookahead firstColumn)
,(minimax, WithLookahead minimaxEntry)
,(alpha, WithLookahead alphabetaEntry)]

CS: assignmentchef QQ: 1823890830 Email: [email protected]

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] {-# LANGUAGE ScopedTypeVariables #-}
$25