This repository has been archived by the owner on Jun 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Chess module for Lua
License
alip/luachess
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
LuaFics ======= :Author: Ali Polatel :Email: polatel@itu.edu.tr Lua module to interact with the Free Internet Chess Server. It provides a simple, callback-driven way to interact with the chess server with builtin timeseal. Simple example: [code,lua] ~~~~~~~~~~~~~~~~~~~~ require("fics") bot = fics.client{ timeseal = true } bot:register_callback("login", function(client) client:send("handle") end) bot:register_callback("password", function (client) client:send("password") end) bot:register_callback("tell", function (client, line, handle, tags, message) client:send("tell " .. handle .. " what's up?") end) status, errmsg = bot:connect() if status == nil then error(errmsg) end status, errmsg = bot:loop() if status == nil and errormsg ~= "closed" then error(errormsg) else print("* Connection closed") end ~~~~~~~~~~~~~~~~~~~~
About
Chess module for Lua
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published