This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class MoveStatus { | |
public int row, col; | |
public int score; | |
public MoveStatus(int Row, int Col, int Score) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class GameController { | |
public int[,] boardState; | |
// 8 directions that we need to check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
using UnityEngine.SceneManagement; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class Board : MonoBehaviour { | |
public GameObject piece; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef MEMORYOPERATOR_H | |
#define MEMORYOPERATOR_H | |
#include "FixedSizeAllocator.h" | |
void* operator new(size_t size); | |
void* operator new(size_t size, bool allocation); | |
void* operator new(size_t size, const char* file, const char* func, const unsigned int line); | |
void* operator new[](size_t size); | |
void* operator new[](size_t size, bool allocation); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <malloc.h> | |
#include "DebugPrint.h" | |
#include "MemoryOperator.h" | |
#include "BlockAllocator.h" | |
#include "FSAManager.h" | |
#include "FixedSizeAllocator.h" | |
#include "Point2D.h" | |
#define ALLOCATE_SIZE 1024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef BITARRAY_H | |
#define BITARRAY_H | |
#include <stdint.h> | |
#include "BlockAllocator.h" | |
namespace Engine | |
{ | |
#ifdef _WIN64 | |
#define u_integer uint64_t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
#include <string.h> | |
#include <intrin.h> | |
#include "BitArray.h" | |
#include "MemoryOperator.h" | |
#include "BlockAllocator.h" | |
using namespace std; | |
#ifdef _DEBUG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef FSAMANAGER_H | |
#define FSAMANAGER_H | |
#include <vector> | |
#include "FixedSizeAllocator.h" | |
#define NUM_FSA 4 | |
namespace Engine | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <vector> | |
#include <math.h> | |
#include "DebugPrint.h" | |
#include "Point2D.h" | |
#include "BlockAllocator.h" | |
#include "FixedSizeAllocator.h" | |
#include "FSAManager.h" | |
#include "MemoryOperator.h" | |
#ifdef _DEBUG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef FIXEDSIZEALLOCATOR_H | |
#define FIXEDSIZEALLOCATOR_H | |
#include "BitArray.h" | |
namespace Engine | |
{ | |
class FixedSizeAllocator | |
{ | |
public: |
NewerOlder