This is a solver for The Ice Tower. Written in Python.
I have been using BFS, DFS and IDDFS, but they don't seem to be efficient.
For the game, you can download here: http://host.zjes.tyc.edu.tw/~junlang/data/p-4.htm
| '進行必要的屬性初始化 | |
| '對齊模式 | |
| ShockwaveFlash1.SAlign = "TL" | |
| '禁用某些功能 | |
| ShockwaveFlash1.AllowFullScreen = True | |
| ShockwaveFlash1.AllowNetworking = "all" | |
| ShockwaveFlash1.AllowScriptAccess = "always" | |
| '背景顏色,兩種語法等效 | |
| 'ShockwaveFlash1.BackgroundColor = RGB(255, 255, 255) | |
| ShockwaveFlash1.BGColor = "ffffff" |
| 'Pixel & Twip 的換算 | |
| Public Function pixelToTwip(ByVal pixel As Long) As Long | |
| pixelToTwip = Screen.TwipsPerPixelX * pixel | |
| End Function | |
| 'LoadMovie | |
| Public Function loadMovie(moviePath As String) | |
| ShockwaveFlash1.Movie = moviePath | |
| End Function |
| public var throttle:Function = function (fn:Function, delay:Number):Function { | |
| var timer:* = null; | |
| return function ():void { | |
| var context:Object = this, args:Object = arguments; | |
| clearTimeout(timer); | |
| timer = setTimeout(function ():void { | |
| fn.apply(context, args); | |
| }, delay); | |
| }; |
| #-*- coding: utf-8 -*- | |
| import pycurl | |
| import json | |
| import time | |
| import datetime | |
| import sys | |
| import signal | |
| import urllib | |
| # IMPORTANT |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> | |
| <script> | |
| function noop(e){ | |
| //e.stopPropagation();//取消drag預設動作 |
| #define MAX 1000000 | |
| #define MULTI 1000 | |
| #include<cstdio> | |
| #include<iostream> | |
| #include<deque> | |
| using namespace std; | |
| typedef long long ll; | |
| typedef pair<ll,ll> point; | |
| int n,f; | |
| ll sum[MAX+1]; |
This is a solver for The Ice Tower. Written in Python.
I have been using BFS, DFS and IDDFS, but they don't seem to be efficient.
For the game, you can download here: http://host.zjes.tyc.edu.tw/~junlang/data/p-4.htm
| <?php | |
| //Comment for easier reading | |
| // Override default SQLite constructor to | |
| // open the file at first. | |
| class MyDB extends SQLite3{ | |
| function __construct(){ | |
| $this->open('dbstore/gb.sqlite'); | |
| } | |
| } |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Guestbook Test</title> | |
| <script src="res/js/jquery-1.10.2.min.js"></script> | |
| <script> | |
| $(function(){ | |
| $("#gb_form").submit(function(){ | |
| $("#gb_submit").attr("disabled","disabled"); | |
| sendForm(); |