-
專案內的代碼為專案成員所共有
自己的 code 會被別人使用、修改;同樣自己也有機會去修改別人的 code。因此撰寫代碼時最重要的是清楚明瞭,避免特殊術語或縮寫,以方便他人或將來的自己閱讀。
-
保持本地工作用副本 (working copy) 為最新版
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# author: tzeng.yuxio@gmail.com | |
# usage: cat file.input | ./qround-problem-a.py > file.output | |
import sys | |
def get_a_row(): | |
a = (int)(sys.stdin.readline()) | |
b = 5 - a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# author: tzeng.yuxio@gmail.com | |
# usage: cat file.input | ./qround-problem-a.py > file.output | |
import sys | |
def solve(): | |
s = sys.stdin.readline()[:-1] | |
c, f, x = [float(x) for x in s.split()] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# author: tzeng.yuxio@gmail.com | |
# usage: cat file.input | ./qround-problem-d.py > file.output | |
import sys | |
def solve(): | |
numblocks = (int)(sys.stdin.readline()) | |
s = sys.stdin.readline()[:-1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# author: tzeng.yuxio@gmail.com | |
# usage: cat file.input | ./qround-problem-a.py > file.output | |
import sys | |
# 計算建完 n 個農場所需時間 | |
def calc_time(c, f, n): | |
tt = 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <bitset> | |
#include <cmath> | |
#include <iomanip> | |
#define NUM_DIGITS 4 | |
using namespace std; | |
long long C(int m, int n) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python2.7 | |
import math | |
NUM_DIGITS = 7 | |
def C(m, n): | |
if m < n: return 0 | |
if m <= 0: return 0 | |
if n == 0 or n == m: return 1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> 基本上只要有回答到以上的問題即可,不一定要分開來一一回答,依照你的喜好整理給我就可以囉。 | |
字數部分沒有任何限制,隨意發揮即可,看你有什麼想法都可以寫在裡面,若是有相關連結或照片那更好 | |
> 1. 當初是因為什麼契機想參加 Game Jam?過程中有沒有發生什麼難忘的事情? | |
2. 你覺得那次參加 Game Jam 有沒有對你日後開發遊戲造成什麼樣的影響? | |
3. 能否稍微介紹一下當年參加 Game Jam 製作的作品? | |
記得當初之所以會參加 Game Jam,是來自主辦單位朋友的邀請。不過收到邀請的當下,其實我是有點猶豫的——理由很簡單,我當時沒有筆電(笑)。後來經過一番討論,發現可以自己帶電腦去會場借螢幕,於是活動當天,我就抱著我的鍵盤滑鼠和主機,滿腔熱血地踏入活動現場了! | |
我參加過兩次 Game Jam,第一次是 2012 年 IGDSHARE 在元智大學舉辦的 MIT Game Jam。由於是現場分組,所以我們團隊裡的四個人在活動前互不認識,但這也正是會場組隊型 Game Jam 有趣的地方:認識陌生的朋友,並在很短的時間內讓大家的能力發揮出來!我們當時做了一款簡單的動作遊戲,名字叫《Dora》,完成度還不錯,在活動之後我們還把當時的代碼丟 bitbucket 公開分享,也把遊戲放上 App Store,不過現在應該找不到了。值得一提的是,我們當初所用的開發工具是直接寫 Objective-C 加 cocos2D 框架,近幾年由於遊戲引擎的蓬勃發展,大多數人都是使用 Unity, GameMaker, Construct 2 這類的編輯器工具,在 Game Jam 上直接 hard coding 的都算是保育類動物,要好好愛護~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import os, sys | |
import shutil | |
dirOpencc = "D:\\Apps\\opencc\\" | |
dirOrigin = "E:\\Steam\\steamapps\\common\\sid meier's civilization v\\assets\\" | |
dirOutput = "E:\\work\\civ5zh\\Sources\\assets\\" | |
specialFiles = ['Gameplay\\XML\\NewText\\CIV5Credits_zh_CN.txt', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Auto-generated by EclipseNSIS Script Wizard | |
# 2011/7/20 上午 10:21:09 | |
!define NAME "civ5zh" | |
!define FULLNAME "Civilization V 正簡雙漢化" | |
!define VERSION "1.0" | |
Name "${FULLNAME} ${VERSION}" | |
# General Symbol Definitions |
OlderNewer