
Security News
Researcher Exposes Zero-Day Clickjacking Vulnerabilities in Major Password Managers
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
A chess library written in ruby. It provides all a representation of a chess game with all rules and serialization. It also provides a command line interface for playing the game
Add this line to your application's Gemfile:
gem 'just_chess'
And then run:
$ bundle
Or install it yourself as:
$ gem install rb_chess
The code below plays a random game of chess:
require 'rb_chess'
game = RbChess::Game.new
until game.game_over?
puts game.board.ascii
game.make_move(game.all_moves.sample)
end
puts game.board.to_fen
You can find the full example of using this library in the RbChess::CLI class in lib/rb_chess/cli/cli.rb.
rb_chess
.e2e4
.0-0
for kingside and 0-0-0
for queenside.a7a8Q
.save
or s
.exit
.Distributed under the MIT License. See LICENSE for more information.
FAQs
Unknown package
We found that rb_chess demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.