main function

void main()

Implementation

void main() {
  NNUE nnue = NNUE();
  List<int> boardInput =
      List.generate(41024, (index) => Random().nextInt(41024))
          .map((x) => x.clamp(0, NNUE.inputSize - 1))
          .toList();
  int score = nnue.evaluate(boardInput);
  print('Initial Score: $score');

  nnue.update(boardInput[0], boardInput[10]);
  score = nnue.evaluate(boardInput);
  print('Updated Score: $score');
}