14 Star 76 Fork 9

醉人的笑 / wordcloud

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
world_map.go 411 Bytes
一键复制 编辑 原始数据 按行查看 历史
aron 提交于 2018-05-04 23:21 . 树池华
package wordcloud_go
import (
"strconv"
"fmt"
)
type WorldMap struct {
Width int
Height int
CollisionMap []int
RealImageWidth int
RealImageHeight int
}
func (this *WorldMap) PrintMap() {
for y := 0; y < this.Height; y++ {
str := ""
for x := 0; x < this.Width; x++ {
idx := y*this.Width + x
str = str + strconv.Itoa(this.CollisionMap[idx])
}
fmt.Println(str)
}
}
Go
1
https://gitee.com/bangbaoshi/wordcloud.git
git@gitee.com:bangbaoshi/wordcloud.git
bangbaoshi
wordcloud
wordcloud
a3d009aef5b0

搜索帮助