| 1 | """Copyright 2010 Aydarkhanov Ruslan, Kurochkin Ilya, Rusinov Ivan |
|---|
| 2 | |
|---|
| 3 | This file is part of Foobar. |
|---|
| 4 | |
|---|
| 5 | Foobar is free software: you can redistribute it and/or modify it under |
|---|
| 6 | the terms of the GNU General Public License as published |
|---|
| 7 | by the Free Software Foundation, either version 2 of the License, |
|---|
| 8 | or (at your option) any later version. |
|---|
| 9 | |
|---|
| 10 | Foobar is distributed in the hope that it will be useful, |
|---|
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty |
|---|
| 12 | of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|---|
| 13 | See the GNU General Public License for more details. |
|---|
| 14 | |
|---|
| 15 | You should have received a copy of the GNU General Public License |
|---|
| 16 | along with Foobar. If not, see http://www.gnu.org/licenses/. |
|---|
| 17 | """ |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | classˆàState(object): |
|---|
| 21 | |
|---|
| 22 | ˆà ˆà ˆà ˆà defˆà__init__(self,ˆàname,ˆàsymbol,ˆàcolor,ˆàkey,ˆànums): |
|---|
| 23 | ˆà ˆà ˆà ˆà ˆà ˆà ˆà ˆà self.name =ˆàname |
|---|
| 24 | ˆà ˆà ˆà ˆà ˆà ˆà ˆà ˆà self.symbol =ˆàsymbol |
|---|
| 25 | ˆà ˆà ˆà ˆà ˆà ˆà ˆà ˆà self.color =ˆàcolor |
|---|
| 26 | ˆà ˆà ˆà ˆà ˆà ˆà ˆà ˆà self.key =ˆàkey |
|---|
| 27 | ˆà ˆà ˆà ˆà ˆà ˆà ˆà ˆà self.nums =ˆànums |
|---|
| 28 | |
|---|
| 29 | ˆà ˆà ˆà ˆà defˆànext_state(self,ˆànum): |
|---|
| 30 | ˆà ˆà ˆà ˆà ˆà ˆà ˆà ˆà returnˆànum inˆàself.nums |
|---|
| 31 | |
|---|
| 32 | ˆà ˆà ˆà ˆà defˆà__repr__(self): |
|---|
| 33 | ˆà ˆà ˆà ˆà ˆà ˆà ˆà ˆà returnˆàself.symbol +ˆà" "ˆà+ˆàself.name |
|---|