File: ThinkAheadAI.m

package info (click to toggle)
gridlock.app 1.10-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,556 kB
  • sloc: objc: 10,334; ansic: 669; makefile: 12
file content (22 lines) | stat: -rw-r--r-- 424 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//
//  ThinkAheadAI.m
//  Gridlock
//
//  Created by Brian on 3/26/05.
//  Copyright 2005 __MyCompanyName__. All rights reserved.
//

#import "ThinkAheadAI.h"


@implementation ThinkAheadAI

-(int)searchDepthForGame:(Game *)game {
  int numUsed = [[game grid] numberOfCellsWithValue:-11];
  int index=numUsed/16;
  int d = [[depths objectAtIndex:index] intValue];
  //NSLog(@"Using search depth:%d", d);
  return d;
}

@end