Skip to content

Instantly share code, notes, and snippets.

View ultimaweapon's full-sized avatar

Putta Khunchalee ultimaweapon

  • Thailand
  • 18:25 (UTC +07:00)
View GitHub Profile
BenchmarkDotNet=v0.13.1, OS=arch 
AMD Ryzen 7 PRO 4750U with Radeon Graphics, 1 CPU, 16 logical and 8 physical cores
.NET SDK=6.0.100
  [Host]     : .NET 6.0.0 (6.0.21.56401), X64 RyuJIT
  DefaultJob : .NET 6.0.0 (6.0.21.56401), X64 RyuJIT

Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us,th"
Option "XkbOptions" "grp:win_space_toggle"
EndSection

Peer to Peer Duel Monsters

Before battle

  1. All of available cards in the system have the same unique identifier.
  2. Each player start with main deck and extra deck consist of the cards choosed from their available cards. Each player must be able to prove their available cards to other players in some ways (blockchain, etc.).

Battle

  1. Each player generate encryption keys for each card they has in their decks.
@ultimaweapon
ultimaweapon / .bashrc
Last active June 25, 2020 04:48
My Bash configurations
alias ls='ls --color=auto'
alias ll='ls -hl --group-directories-first'
PROMPT_COMMAND=setup_prompt
setup_prompt() {
exit_code="$?"
PS1="[\[\e[1;34m\]\w\[\e[0m\]:\[\e[1;95m\]${exit_code}\[\e[0m\]]"