src/example.lisp @ a4e654d192f0

Add `:server` option to `start-player`
author Steve Losh <steve@stevelosh.com>
date Wed, 14 Sep 2016 15:22:18 +0000
parents 04d792fae37f
children (none)
(in-package #:cl-user)

(defclass simple-player (ggp:ggp-player)
  ())

(defmethod ggp:player-select-move ((player simple-player) timeout)
  (format t "Selecting move (timeout ~A)~%" timeout)
  'ggp-rules::wait)


(defvar *player* nil)

(setf *player* (make-instance 'simple-player
                              :name "SimplePlayer"
                              :port 5000))


(ggp:start-player *player*)
(ggp:kill-player *player*)