Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fairy set #48

Closed
wants to merge 102 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
c83a107
Let general handling of repeats track loop length
Feb 4, 2019
5a29ba0
Make Mersenne Twister available directly
Feb 9, 2019
453382b
Pass piece count to user evaluation in chessbase
Nov 12, 2018
0213b5e
Improve chessbase control over game result
Nov 11, 2018
a7dce67
Generalize e.p. capture in chessbase
Dec 16, 2023
0b4ab5c
Allow chess base model to track multiple royals
Nov 16, 2018
de65782
Fragile repair of 50-move rule in chess base
Feb 4, 2019
803031c
Subtle change in how chessbase performs castling
Dec 16, 2023
29f86a1
Fix hopper attacks in chessbase
Dec 6, 2023
7cf8f70
Support flying capture in the chessbase module
Dec 15, 2023
ee45046
Support brouhaha squares in chessbase
Dec 16, 2023
b071803
Add function to streamline move-graph generation
Jan 11, 2024
46b3ebe
Improve chessbase animation of lame oblique moves
Nov 11, 2018
54b72b5
Improve default cbMoveMidZ for grid board
Jan 7, 2024
95ab8af
Provide better infra-structure for custom chess moves
Nov 11, 2018
2d8684f
Add support for entry of two-leg moves
Nov 13, 2018
3103bf2
Fix entry and animation of non-standard castlings
Dec 16, 2023
0a4eb51
Fix repetition detection in chess base model
Feb 9, 2019
fd4613e
New sub-model: support common fairy and multi-leg chess moves
Dec 4, 2023
5ec6784
Support piece definitions from FEN in fairy-move-model.js
Dec 19, 2023
b1498ed
Let cbSkiGraph respect confinement
Jan 11, 2024
29f9fd9
delete wrongly named crowned-rook icon
Jan 12, 2024
49d2fc0
Scale Griffon
Jan 4, 2024
84c92b9
New fairy pieces: sized and deformed
Nov 15, 2018
845efed
Create visuals for entire fairy set
Jan 12, 2024
f7d9827
New variant: Team-Mate Chess
Nov 12, 2018
2c177ef
New variant: Werewolf Chess
Nov 13, 2018
b0f6f4a
New variant: Elven Chess
Nov 15, 2018
40dc4b9
New variant: Spartan Chess
Nov 16, 2018
3d70df4
New variant: Scirocco
Jan 16, 2019
9c80add
Fix castling and stalemate in Wildebeest Chess
Feb 9, 2019
adfaa2b
Fix Xiangi stalemate score
Jan 22, 2019
6e64cfa
Implement ban on perpetual checking in Xiangqi
Feb 4, 2019
cb13e39
New sub-model: support for drop moves in chess base
Feb 7, 2019
c568c73
New piece set: oriental Shogi tiles
Feb 7, 2019
460103d
New variant: Shogi
Feb 7, 2019
c420dd8
Add Tori Shogi kanji pieces
Nov 29, 2023
a892c21
New variant: Tori Shogi
Nov 29, 2023
bc2ca45
Move Shogi files to shogi directory
Nov 29, 2023
8a13c39
New variant: Mini-Shogi
Nov 29, 2023
a781035
Move 10x8 and Tressau variants to separate directory
Nov 29, 2023
fc19ee9
Move 3D variants to separate directory
Nov 29, 2023
cfde962
Move hexagonal variants to separate directory
Nov 29, 2023
767689a
Move all 5x6 and smaller variants to separate directory
Nov 29, 2023
2b289e4
Move circular variants to separate directory
Nov 29, 2023
a811f39
Move variants from Jean-Louis Cazaux to separate directory
Nov 29, 2023
d00b62e
Move regional/historic variants to separate directory
Nov 30, 2023
9421e81
Move 10x10 variants to separate directory
Nov 30, 2023
50d4271
Move variants with Amazons to a separate directory
Nov 30, 2023
ee1f023
Move variants with knighted pieces to seperate directory
Nov 30, 2023
ce387dd
Move variants with standard pieces to separate directory
Nov 30, 2023
6176ca1
Give fr-cannon2 its own fairy sprite
Dec 21, 2023
3ca5bf9
New fairy pieces: Stork and Phoenix
Dec 19, 2023
5f1eed3
New fairy pieces: Champion and Wizard
Dec 28, 2023
c65760d
New fairy pieces: Gold, Silver and Copper General
Dec 28, 2023
0bc1ba5
New fairy piece: Cobra
Dec 29, 2023
612ed35
New fairy piece: Flamingo
Dec 29, 2023
2c39de1
Change 3d image of fr-saint
Jan 2, 2024
1061ef0
New fairy pieces: flying sliders
Jan 2, 2024
6e899c9
New fairy piece: Flying Saint
Jan 4, 2024
195b195
New fairy piece: Samurai
Jan 4, 2024
7aca25f
New fairy piece: Terror
Jan 4, 2024
65ad1cc
Improve fairy piece: Rhino
Dec 29, 2023
9a859cf
Improve 2d image of Commoner
Jan 4, 2024
fa28083
New variant: Makromachy
Dec 19, 2023
63fd655
New variant: Minjiku Shogi
Jan 12, 2024
91a1c13
Add command-line tool for aiding in 3d piece creation
Jan 4, 2024
33d5213
New fairy piece: Berolina Pawn
Dec 29, 2023
e06f0f5
New fairy piece: Owl
Jan 4, 2024
91f5893
New fairy piece: Scout
Jan 4, 2024
29b6d87
New fairy piece: Caliph
Jan 4, 2024
f1a4fa0
New fairy piece: Lance
Jan 4, 2024
e99cea5
New fairy piece: Sword
Jan 4, 2024
e4c4798
Shape up fairy sprites
Jan 5, 2024
47a90a7
use of fairy-move model for bigorra, fantastic XIII and gigachess II …
fhoudebert Dec 22, 2023
52d322f
Timurid : Simplification of doc/rules and credits
fhoudebert Dec 22, 2023
927317e
move doc from cazaux to res/rules
fhoudebert Dec 22, 2023
a734b6c
add new Fairy piece : terror, a dragon used in makromachy
fhoudebert Dec 23, 2023
b7f0619
improve doc of fantastic XIII
fhoudebert Dec 24, 2023
264b1b0
move html files for documentation, rules, credits in res/rules
fhoudebert Dec 26, 2023
709c53d
create duodecimal group for 12*12 chess variants
fhoudebert Dec 26, 2023
adc6bd5
replacement of the eagle by the griffon
fhoudebert Dec 26, 2023
c760dc9
add grant acedrex and create an historical group
fhoudebert Dec 27, 2023
c1e0e70
use griffons in visuals for timurid variants
fhoudebert Dec 27, 2023
fcbf132
updated jocly urls from mi-g to aclap-dev
mi-g Dec 26, 2023
bc273a7
ignore private dir
mi-g Dec 29, 2023
8885176
use fr-cobra for snake and aquila 2d for hawk
fhoudebert Jan 3, 2024
7d671ef
improve graphs images for rules : hawk + zebra
fhoudebert Jan 4, 2024
efcdc3f
build grand chess from a FEN string
Dec 29, 2023
964a6b4
documente l’utilisation du fairy move model pour une variante 10x8 : …
fhoudebert Jan 4, 2024
bcda5c3
use fairy model in zanzibar
Jan 10, 2024
128dc00
replace fr-rhino by fr-rhino2 in cazaux variants
Jan 11, 2024
6f60898
update visuals for wild mirza with cobra/griffon
fhoudebert Jan 5, 2024
4e4b125
improve doc for wild mirza and timurid
fhoudebert Jan 5, 2024
25ecbb2
rename griffin->griffon, squirle->squirrel, huscarl->axe, move html t…
fhoudebert Jan 13, 2024
9ff409b
hawk : use falcon instead of aquila 2d sprite
fhoudebert Jan 13, 2024
a2fb118
Merge branch 'aclap-dev:master' into fairySet
fhoudebert Jan 13, 2024
beb59ca
Update makromachy-rules.html
fhoudebert Jan 14, 2024
170de1d
Use Fairy Set visual for documentation (rules)
fhoudebert Jan 14, 2024
07db743
Add visuals for werewolf
fhoudebert Jan 14, 2024
6817f16
fix rules path for werewolf
fhoudebert Jan 15, 2024
525a51e
replace eagle by wolf in werewold rules
fhoudebert Jan 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 14 additions & 5 deletions src/core/jocly.game.js
Original file line number Diff line number Diff line change
Expand Up @@ -946,18 +946,18 @@ JocGame.prototype.AddBest = function(aMove, aBoard) {
this.mBestMoves.push(move);
}

JocGame.prototype.GetRepeatOccurence = function(board) {
JocGame.prototype.GetRepeatOccurence = function(board, len) {
if(!this.mOptions.preventRepeat)
return -1;
var repOcc=this.mVisitedBoards[board.GetSignature()];
return repOcc;
return (len ? this.mPlayedMoves.length - (repOcc >>> 4) : repOcc&15);
}

JocGame.prototype.HandleRepeat = function(board) {
if(this.mOptions.preventRepeat) {
var sign=board.GetSignature(true);
if(this.mVisitedBoards[sign]===undefined)
this.mVisitedBoards[sign]=1;
this.mVisitedBoards[sign]=1 + 16*this.mPlayedMoves.length;
else
this.mVisitedBoards[sign]++;
}
Expand All @@ -966,9 +966,10 @@ JocGame.prototype.HandleRepeat = function(board) {
JocGame.prototype.UnhandleRepeat = function(board) {
if(this.mOptions.preventRepeat) {
var sign=board.GetSignature(true);
if(this.mVisitedBoards[sign]==1)
var n=this.mVisitedBoards[sign]&15;
if(n==1)
delete this.mVisitedBoards[sign];
else if(this.mVisitedBoards[sign]>1)
else if(n>1)
this.mVisitedBoards[sign]--;
}
}
Expand Down Expand Up @@ -1307,8 +1308,16 @@ JocBoard.prototype.CompactMoveString = function(aGame,aMove) {

/*-- Zobrist implementation --*/

JocGame.Twister = 0;

JocGame.LetsTwist=function(seed) {
if(!JocGame.Twister) JocGame.Twister=new MersenneTwister(seed);
return JocGame.Twister;
}

JocGame.Zobrist=function(params) {
var mt=new MersenneTwister(12345);

var paramNames=[];
for(var f in params)
paramNames.push(f);
Expand Down
Loading