Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1024695 // chess_isLightSquare

JavaX fragment (include)

sbool chess_isLightSquare(S square) {
  int x, y = unpair chess_squareToPos(square);
  ret even(x+y);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024695
Snippet name: chess_isLightSquare
Eternal ID of this version: #1024695/1
Text MD5: ef56460d8bd21914fdb3e56ccb3d4e6e
Author: stefan
Category: javax / chess
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-24 08:41:50
Source code size: 106 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 233 / 274
Referenced in: [show references]