summary refs log tree commit diff stats
path: root/lisp/fibs.el
blob: 545c2a74060041cf8f88db1256e021ed4ca41aac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
;;; fibs.el --- Play backgammon with FIBS -*- lexical-binding: t; -*-

;;; Commentary:

;; fibs.com is one of the oldest backgammon servers out there, and it's
;; accessible via telnet.  This package provides a wrapper to enable you to play
;; backgammon on fibs.com more easily than just opening a telnet session
;; yourself.

;;; TODO:

;; - Automatically log in.
;; - Add a `fibs-quit' function to kill the telnet server and buffer.

;;; Code:

(require 'telnet)

(defgroup fibs nil
  "Customizations for FIBS, the First Internet Backgammon Server."
  :group 'games)

(defcustom fibs-server "fibs.com"
  "The server to connect to FIBS with."
  :type 'string)

(defcustom fibs-port 4321
  "The port to connect to FIBS with."
  :type 'number)

;;;###autoload
(defun fibs ()
  (interactive)
  (telnet fibs-server fibs-port))

(provide 'fibs)
;;; fibs.el ends here