Skip to content

Instantly share code, notes, and snippets.

View Version2beta's full-sized avatar

Rob Martin Version2beta

View GitHub Profile
( This is a simplified version of the card game War written in Puppy. )
( Simple version of War: )
( Two values on top of the stack represent dealt cards for the left and the )
( right players. Figure out which is bigger, and send the cards to that )
( player. In case of a tie, play again to determine the winner. )
( Puppy is an unimplemented point-free, concatentative, stack-based language )
( with quotations. )

Keybase proof

I hereby claim:

  • I am version2beta on github.
  • I am version2beta (https://keybase.io/version2beta) on keybase.
  • I have a public key ASBWycr-1gFFwyfPI3S1ZqThdpYCW1tvfVnDZk0UAvp3JAo

To claim this, I am signing this object:

@Version2beta
Version2beta / exercise-equivalent-binary-trees.go
Created August 30, 2021 02:46
A Tour of Go Exercise: Equivalent Binary Trees
package main
import (
"fmt"
"golang.org/x/tour/tree"
)
func Walk(t *tree.Tree, ch chan int) {
if t == nil {
return
@Version2beta
Version2beta / exercise-rot-reader.go
Created August 30, 2021 02:48
A Tour of Go Exercise: rot13Reader
package main
import (
"fmt"
"io"
"os"
"strings"
)
type rot13Reader struct {
@Version2beta
Version2beta / exercise-web-crawler.go
Last active August 30, 2021 05:47
A Tour of Go Exercise: Web Crawler
package main
import (
"fmt"
"math/rand"
"sync"
"time"
)
const logging = true