Skip to content

Commit 4c6ea6d

Browse files
committed
2 parents 5723fbc + e5536f5 commit 4c6ea6d

File tree

4 files changed

+105
-5
lines changed

4 files changed

+105
-5
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ main ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ main ]
20+
schedule:
21+
- cron: '28 15 * * 6'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'java' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
37+
# Learn more:
38+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
39+
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v2
43+
44+
# Initializes the CodeQL tools for scanning.
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v1
47+
with:
48+
languages: ${{ matrix.language }}
49+
# If you wish to specify custom queries, you can do so here or in a config file.
50+
# By default, queries listed here will override any specified in a config file.
51+
# Prefix the list here with "+" to use these queries and those in the config file.
52+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
53+
54+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55+
# If this step fails, then you should remove it and run the build manually (see below)
56+
- name: Autobuild
57+
uses: github/codeql-action/autobuild@v1
58+
59+
# ℹ️ Command-line programs to run using the OS shell.
60+
# 📚 https://git.io/JvXDl
61+
62+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63+
# and modify them (or add more) to build your code if your project
64+
# uses a compiled language
65+
66+
#- run: |
67+
# make bootstrap
68+
# make release
69+
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v1

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,45 @@
11
# chess-engine
22

3-
Part 1:
3+
![Chess Move Generator Tests](https://pbs.twimg.com/media/E_n_APbVEAIHYAw?format=jpg&name=large)
4+
5+
## Part 1:
46

57
The chess engine can generate all legal moves for a given position upto an arbitrary depth.
6-
This includes:
8+
This includes: Move Engine
9+
```
710
-- pawn promotions
811
-- enpassant moves
912
-- castling
13+
```
1014

1115
The moves which are marked illegal are:
16+
```
1217
-- x-rays to the king
1318
-- castling through check
1419
-- moves of a piece pinned to the king
1520
-- moving into check
1621
-- enpassant after one move
22+
```
1723

1824
The current move generator takes about 2 minutes to go to a depth of 6 ply.
1925

2026

21-
Part 2: (In progress) Game Engine
27+
## Part 2: Game Engine (In progress)
2228

2329
The game engine will use the move generator to select a move. The first version will be using a min-max tree with optimisations to find the best move.
2430

2531
This includes:
32+
```
2633
-- basic hueristic
2734
-- iterative deepening
2835
-- alpha-beta pruning
2936
-- killer heuristic
3037
-- quiescence search
3138
-- null heuristic
3239
-- parallel alpha-beta
40+
```
3341

34-
Part 3: (Planning phase) Stochastic Chess Engine
42+
## Part 3: Stochastic Chess Engine (In planning)
3543

3644
The second version of the chess engine will use Monte Carlo Tree Search with basic hueristics.
3745

SECURITY.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
Use this section to tell people about which versions of your project are
6+
currently being supported with security updates.
7+
8+
| Version | Supported |
9+
| ------- | ------------------ |
10+
| 5.1.x | :white_check_mark: |
11+
| 5.0.x | :x: |
12+
| 4.0.x | :white_check_mark: |
13+
| < 4.0 | :x: |
14+
15+
## Reporting a Vulnerability
16+
17+
Use this section to tell people how to report a vulnerability.
18+
19+
Tell them where to go, how often they can expect to get an update on a
20+
reported vulnerability, what to expect if the vulnerability is accepted or
21+
declined, etc.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<dependency>
2424
<groupId>junit</groupId>
2525
<artifactId>junit</artifactId>
26-
<version>4.13</version>
26+
<version>4.13.1</version>
2727
<scope>test</scope>
2828
</dependency>
2929
</dependencies>

0 commit comments

Comments
 (0)