From 0e85e91f2ede4736d4f5a782dbf0b44ed0de57a8 Mon Sep 17 00:00:00 2001 From: Martin Putzlocher Date: Mon, 4 Apr 2022 06:16:33 +0000 Subject: [PATCH] first generated code Code aus erster Modellierung --- maedn/Board.py | 21 ++++++++++++++++++ maedn/Field.py | 26 ++++++++++++++++++++++ maedn/GameController.py | 48 +++++++++++++++++++++++++++++++++++++++++ maedn/GameView.py | 13 +++++++++++ maedn/House.py | 13 +++++++++++ 5 files changed, 121 insertions(+) create mode 100644 maedn/Board.py create mode 100644 maedn/Field.py create mode 100644 maedn/GameController.py create mode 100644 maedn/GameView.py create mode 100644 maedn/House.py diff --git a/maedn/Board.py b/maedn/Board.py new file mode 100644 index 0000000..2e9c0b6 --- /dev/null +++ b/maedn/Board.py @@ -0,0 +1,21 @@ +# coding=UTF-8 + +class Board(object): + + """ + + + :version: + :author: + """ + + """ ATTRIBUTES + + + + dict_all_fields (private) + + """ + + + diff --git a/maedn/Field.py b/maedn/Field.py new file mode 100644 index 0000000..3f0ff41 --- /dev/null +++ b/maedn/Field.py @@ -0,0 +1,26 @@ +# coding=UTF-8 +from Board import * + +class Field(object): + + """ + + + :version: + :author: + """ + + """ ATTRIBUTES + + + + board (private) + + + + occupied (private) + + """ + + + diff --git a/maedn/GameController.py b/maedn/GameController.py new file mode 100644 index 0000000..bffb4fb --- /dev/null +++ b/maedn/GameController.py @@ -0,0 +1,48 @@ +# coding=UTF-8 +from Player import * +from Board import * + +class GameController(object): + + """ + + + :version: + :author: + """ + + """ ATTRIBUTES + + + + list_of_players (private) + + + + board (private) + + """ + + def add_player(self, name, color): + """ + + + @param string name : + @param string color : + @return Player : + @author + """ + pass + + def remove_player(self, color): + """ + + + @param string color : + @return : + @author + """ + pass + + + diff --git a/maedn/GameView.py b/maedn/GameView.py new file mode 100644 index 0000000..89dc5fb --- /dev/null +++ b/maedn/GameView.py @@ -0,0 +1,13 @@ +# coding=UTF-8 + +class GameView(object): + + """ + + + :version: + :author: + """ + + + diff --git a/maedn/House.py b/maedn/House.py new file mode 100644 index 0000000..75d2631 --- /dev/null +++ b/maedn/House.py @@ -0,0 +1,13 @@ +# coding=UTF-8 + +class House(object): + + """ + + + :version: + :author: + """ + + +