File tree 14 files changed +25
-12
lines changed
lib/software_challenge_client
14 files changed +25
-12
lines changed Original file line number Diff line number Diff line change
1
+ # This file lists all individuals having contributed content to the repository.
2
+ # For how it is generated, see `generate-authors.sh`.
3
+
4
+ kwollw <kwollw@users.noreply.github.com>
5
+ Ralf-Tobias Diekert <ralfbias@hotmail.com>
6
+ Sven Koschnicke <s.koschnicke@gfxpro.com>
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Thanks to the docker project!
3
+ # https://github.com/docker/docker/blob/2c224e4fc09518d33780d818cf74026f6aa32744/hack/generate-authors.sh
4
+ set -e
5
+
6
+ # change to the directory where the script is located, this should be the project root
7
+ pushd " $( dirname " $( readlink -f " $BASH_SOURCE " ) " ) /"
8
+
9
+ # see also ".mailmap" for how email addresses and names are deduplicated
10
+
11
+ {
12
+ cat << -'EOH '
13
+ # This file lists all individuals having contributed content to the repository.
14
+ # For how it is generated, see `generate-authors.sh`.
15
+ EOH
16
+ echo
17
+ git log --format=' %aN <%aE>' | LC_ALL=C.UTF-8 sort -uf
18
+ } > AUTHORS
19
+ popd
Original file line number Diff line number Diff line change 7
7
8
8
require 'securerandom'
9
9
10
- # @author Ralf-Tobias Diekert
11
10
# A representation of a twixt game board
12
11
class Board
13
12
# @!attribute [r] fields
Original file line number Diff line number Diff line change 1
1
# encoding: UTF-8
2
2
require_relative 'player'
3
3
4
- # @author Ralf-Tobias Diekert
5
4
# winning condition
6
5
class Condition
7
6
# @!attribute [r] winner
Original file line number Diff line number Diff line change 1
1
# encoding: UTF-8
2
2
require_relative 'player_color'
3
3
4
- # @author Ralf-Tobias Diekert
5
4
# A connection between two fields owned by a specific player
6
5
class Connection
7
6
# @!attribute [r] x1
Original file line number Diff line number Diff line change 1
1
# encoding: UTF-8
2
- # @author Ralf-Tobias Diekert
3
2
# A debug hint, that can be added to a move
4
3
class DebugHint
5
4
Original file line number Diff line number Diff line change 2
2
require_relative 'player_color'
3
3
require_relative 'field_type'
4
4
5
- # @author Ralf-Tobias Diekert
6
5
# A field on the game board
7
6
class Field
8
7
# @!attribute [rw] ownerColor
Original file line number Diff line number Diff line change 1
1
# encoding: UTF-8
2
- # @author Ralf-Tobias Diekert
3
2
#Fieldtype constants
4
3
module FieldType
5
4
NORMAL = 1
Original file line number Diff line number Diff line change 7
7
require_relative 'player_color'
8
8
require_relative 'field_type'
9
9
10
- # @author Ralf-Tobias Diekert
11
10
# The state of a game
12
11
class GameState
13
12
Original file line number Diff line number Diff line change 1
1
# encoding: UTF-8
2
2
require_relative 'debug_hint'
3
3
4
- # @author Ralf-Tobias Diekert
5
4
# A move, that can be performed in twixt
6
5
class Move
7
6
# @!attribute [r] x
Original file line number Diff line number Diff line change 6
6
require 'rexml/document'
7
7
require 'rexml/element'
8
8
9
- # @author Ralf-Tobias Diekert
10
9
# This class handles the socket connection to the server
11
10
class Network
12
11
@socket
Original file line number Diff line number Diff line change 1
1
# encoding: UTF-8
2
2
require_relative 'player_color'
3
3
4
- # @author Ralf-Tobias Diekert
5
4
# A player, participating at a game
6
5
class Player
7
6
# @!attribute [r] color
Original file line number Diff line number Diff line change 1
1
# encoding: UTF-8
2
- # @author Ralf-Tobias Diekert
3
2
#player color constants
4
3
module PlayerColor
5
4
NONE = 1
Original file line number Diff line number Diff line change 9
9
require 'rexml/document'
10
10
require 'rexml/streamlistener'
11
11
12
- # @author Ralf-Tobias Diekert
13
12
# This class handles the parsing of xml strings according to the network protocol of twixt
14
13
class Protocol
15
14
include REXML ::StreamListener
You can’t perform that action at this time.
0 commit comments