Skip to content

Instantly share code, notes, and snippets.

View 3211133's full-sized avatar

3211133

  • Japan
View GitHub Profile
# -*- coding: utf-8 -*-
# gosero2.pyw - GUIosero002
# 2018.12.06
import sys
import tkinter as tk
import random
# メイン関数
def main():
# -*- coding: utf-8 -*-
# oseroai.py - osero
import sys
import random
def main():
while True:
times = int(input('何試合しますか:'))
while times:
@3211133
3211133 / osero.py
Last active November 16, 2018 15:37
# -*- coding: utf-8 -*-
# osero.py - osero
import sys
import random
def main():
mode = int(input('プレイヤー人数を入力してください-0,1,2'))
while True:
盤面 = [[0,0,0,0,0,0,0,0],
@3211133
3211133 / osero.py
Created August 5, 2018 13:27
osero.py
# -*- coding: utf-8 -*-
# osero.py -- オセロ
list = [[0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 1, -1, 0, 0, 0],
[0, 0, 0, -1, 1, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0],