Skip to content

Instantly share code, notes, and snippets.

@Nick0603
Nick0603 / mineSweeperAI
Last active August 8, 2017 12:29
看到FB朋友po自製的 網頁版採地雷遊戲,真的太懷念了,玩玩幾次之後突發奇想寫寫AI
function getSize(){
var rows = 0;
while(true){
var nextRowGrid = document.getElementById("position-1-" + (rows+1));
if(nextRowGrid){
rows++
}else{
break;
}
}
import requests
import time
from bs4 import BeautifulSoup
import os
import re
import urllib.request
import json
PTT_URL = 'https://www.ptt.cc'