Skip to content

Instantly share code, notes, and snippets.

Open Source Games Collection

This repository contains a curated list of open source games and game-related projects available on GitHub. The collection spans a wide variety of categories including:

  • Classic text adventures
  • Educational games
  • Retro 8-bit platform games
  • Browser-based games
  • Indie game projects
  • GameJam submissions
anonymous
anonymous / multi_try.erl
Created December 24, 2012 03:18
实现一个API,API内部有两个http接口A,B并发调用,如果都在200ms内返回,则合并结果输出,如果B比A慢,且B耗时超过200ms,则丢弃B调用只返回A结果
-module(multi_try).
-export([dothese/1]).
dothese(FuncArray) ->
Me = self(),
lists:foreach(fun(F) -> spawn(fun() -> F(Me) end) end, FuncArray),
spawn(fun() -> timer:sleep(1000), Me ! timeout end),
Result = get_result("",length(FuncArray)),
io:format("result: ~p~n", [Result]).
@glamp
glamp / cows_and_wolves.txt
Last active July 3, 2017 14:23
plotting wolf/cow fence boundaries
o o o
o x
o x x x
x o
x x x o
x
o o
o
@hugozhu
hugozhu / workflow_demo.go
Last active December 10, 2015 01:58
Use go to implement a simple workflow
func callA() string {
time.Sleep(time.Millisecond * 300)
return "Hello A"
}
func callB() string {
time.Sleep(time.Millisecond * 100)
return "Hello B"
}