Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

Debug testing samples #18

Open
wuch15 opened this issue Oct 25, 2017 · 1 comment
Open

Debug testing samples #18

wuch15 opened this issue Oct 25, 2017 · 1 comment

Comments

@wuch15
Copy link
Contributor

wuch15 commented Oct 25, 2017

No description provided.

@dongyx16
Copy link
Contributor

dongyx16 commented Nov 6, 2017

def test_map_and_produce(self):
    #生成地图函数测试
    for i in range(self._map_size):
        for j in range(self._map_size):
            if self._map[i][j]==0:
                print(" ",end='')
            elif self._map[i][j]==1:
                print("*",end='')
            else:
                print("#",end='')
        print()

    #生产兵种函数测试
        self.buildings[1]['produce'].append(
            (Building(BuildingType.Shannon, (133, 133), 1, 2, False, self.status[1]['tech']), (122, 122))) #随便加了个建筑试了一下
        self.produce_phase()
        for item in self.units:
            print(item)
        for item in self.buildings:
            print(item)
        for item in self.status:
            print(item)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants