khetai 0.1.7 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +5 -0
- data/Gemfile.lock +2 -2
- data/README.md +36 -22
- data/ext/khetai/dev/README.md +15 -0
- data/ext/khetai/dev/fltk-ui/Makefile +65 -0
- data/ext/khetai/dev/fltk-ui/Makefile.khetai +46 -0
- data/ext/khetai/dev/fltk-ui/README.md +34 -0
- data/ext/khetai/dev/fltk-ui/ai_loader.cpp +93 -0
- data/ext/khetai/dev/fltk-ui/ai_loader.h +33 -0
- data/ext/khetai/dev/fltk-ui/assets/anubis_red_e.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/anubis_red_n.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/anubis_red_s.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/anubis_red_w.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/anubis_silver_e.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/anubis_silver_n.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/anubis_silver_s.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/anubis_silver_w.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/example_board.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/laser_red_e.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/laser_red_n.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/laser_red_s.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/laser_red_w.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/laser_silver_e.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/laser_silver_n.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/laser_silver_s.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/laser_silver_w.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pharaoh_red.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pharaoh_silver.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pyramid_red_e.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pyramid_red_n.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pyramid_red_s.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pyramid_red_w.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pyramid_silver_e.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pyramid_silver_n.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pyramid_silver_s.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/pyramid_silver_w.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/scarab_red_e.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/scarab_red_n.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/scarab_red_s.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/scarab_red_w.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/scarab_silver_e.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/scarab_silver_n.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/scarab_silver_s.png +0 -0
- data/ext/khetai/dev/fltk-ui/assets/scarab_silver_w.png +0 -0
- data/ext/khetai/dev/fltk-ui/build_khetai.sh +9 -0
- data/ext/khetai/dev/fltk-ui/game_board.cpp +896 -0
- data/ext/khetai/dev/fltk-ui/game_board.h +105 -0
- data/ext/khetai/dev/fltk-ui/game_board_util.cpp +119 -0
- data/ext/khetai/dev/fltk-ui/game_board_util.h +15 -0
- data/ext/khetai/dev/fltk-ui/khet.cpp +59 -0
- data/ext/khetai/dev/main.c +8 -7
- data/ext/khetai/dev/main.rb +9 -10
- data/ext/khetai/khetai.c +22 -6
- data/ext/khetai/khetai_lib.c +24 -13
- data/ext/khetai/khetai_lib.h +51 -24
- data/lib/khetai/version.rb +1 -1
- metadata +50 -4
- data/README_ORIGINAL.md +0 -40
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: khetai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jkugs
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -23,11 +23,57 @@ files:
|
|
23
23
|
- Gemfile.lock
|
24
24
|
- LICENSE.txt
|
25
25
|
- README.md
|
26
|
-
- README_ORIGINAL.md
|
27
26
|
- Rakefile
|
28
27
|
- bin/console
|
29
28
|
- bin/setup
|
30
29
|
- ext/khetai/dev/CMakeLists.txt
|
30
|
+
- ext/khetai/dev/README.md
|
31
|
+
- ext/khetai/dev/fltk-ui/Makefile
|
32
|
+
- ext/khetai/dev/fltk-ui/Makefile.khetai
|
33
|
+
- ext/khetai/dev/fltk-ui/README.md
|
34
|
+
- ext/khetai/dev/fltk-ui/ai_loader.cpp
|
35
|
+
- ext/khetai/dev/fltk-ui/ai_loader.h
|
36
|
+
- ext/khetai/dev/fltk-ui/assets/anubis_red_e.png
|
37
|
+
- ext/khetai/dev/fltk-ui/assets/anubis_red_n.png
|
38
|
+
- ext/khetai/dev/fltk-ui/assets/anubis_red_s.png
|
39
|
+
- ext/khetai/dev/fltk-ui/assets/anubis_red_w.png
|
40
|
+
- ext/khetai/dev/fltk-ui/assets/anubis_silver_e.png
|
41
|
+
- ext/khetai/dev/fltk-ui/assets/anubis_silver_n.png
|
42
|
+
- ext/khetai/dev/fltk-ui/assets/anubis_silver_s.png
|
43
|
+
- ext/khetai/dev/fltk-ui/assets/anubis_silver_w.png
|
44
|
+
- ext/khetai/dev/fltk-ui/assets/example_board.png
|
45
|
+
- ext/khetai/dev/fltk-ui/assets/laser_red_e.png
|
46
|
+
- ext/khetai/dev/fltk-ui/assets/laser_red_n.png
|
47
|
+
- ext/khetai/dev/fltk-ui/assets/laser_red_s.png
|
48
|
+
- ext/khetai/dev/fltk-ui/assets/laser_red_w.png
|
49
|
+
- ext/khetai/dev/fltk-ui/assets/laser_silver_e.png
|
50
|
+
- ext/khetai/dev/fltk-ui/assets/laser_silver_n.png
|
51
|
+
- ext/khetai/dev/fltk-ui/assets/laser_silver_s.png
|
52
|
+
- ext/khetai/dev/fltk-ui/assets/laser_silver_w.png
|
53
|
+
- ext/khetai/dev/fltk-ui/assets/pharaoh_red.png
|
54
|
+
- ext/khetai/dev/fltk-ui/assets/pharaoh_silver.png
|
55
|
+
- ext/khetai/dev/fltk-ui/assets/pyramid_red_e.png
|
56
|
+
- ext/khetai/dev/fltk-ui/assets/pyramid_red_n.png
|
57
|
+
- ext/khetai/dev/fltk-ui/assets/pyramid_red_s.png
|
58
|
+
- ext/khetai/dev/fltk-ui/assets/pyramid_red_w.png
|
59
|
+
- ext/khetai/dev/fltk-ui/assets/pyramid_silver_e.png
|
60
|
+
- ext/khetai/dev/fltk-ui/assets/pyramid_silver_n.png
|
61
|
+
- ext/khetai/dev/fltk-ui/assets/pyramid_silver_s.png
|
62
|
+
- ext/khetai/dev/fltk-ui/assets/pyramid_silver_w.png
|
63
|
+
- ext/khetai/dev/fltk-ui/assets/scarab_red_e.png
|
64
|
+
- ext/khetai/dev/fltk-ui/assets/scarab_red_n.png
|
65
|
+
- ext/khetai/dev/fltk-ui/assets/scarab_red_s.png
|
66
|
+
- ext/khetai/dev/fltk-ui/assets/scarab_red_w.png
|
67
|
+
- ext/khetai/dev/fltk-ui/assets/scarab_silver_e.png
|
68
|
+
- ext/khetai/dev/fltk-ui/assets/scarab_silver_n.png
|
69
|
+
- ext/khetai/dev/fltk-ui/assets/scarab_silver_s.png
|
70
|
+
- ext/khetai/dev/fltk-ui/assets/scarab_silver_w.png
|
71
|
+
- ext/khetai/dev/fltk-ui/build_khetai.sh
|
72
|
+
- ext/khetai/dev/fltk-ui/game_board.cpp
|
73
|
+
- ext/khetai/dev/fltk-ui/game_board.h
|
74
|
+
- ext/khetai/dev/fltk-ui/game_board_util.cpp
|
75
|
+
- ext/khetai/dev/fltk-ui/game_board_util.h
|
76
|
+
- ext/khetai/dev/fltk-ui/khet.cpp
|
31
77
|
- ext/khetai/dev/main.c
|
32
78
|
- ext/khetai/dev/main.rb
|
33
79
|
- ext/khetai/extconf.rb
|
@@ -58,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
104
|
- !ruby/object:Gem::Version
|
59
105
|
version: '0'
|
60
106
|
requirements: []
|
61
|
-
rubygems_version: 3.
|
107
|
+
rubygems_version: 3.4.10
|
62
108
|
signing_key:
|
63
109
|
specification_version: 4
|
64
110
|
summary: Khet AI
|
data/README_ORIGINAL.md
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
# Khetai
|
2
|
-
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/khetai`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
Add this line to your application's Gemfile:
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'khetai'
|
13
|
-
```
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle install
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install khetai
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/khetai.
|
36
|
-
|
37
|
-
|
38
|
-
## License
|
39
|
-
|
40
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|