Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
joker
========
[![Build Status](https://drone.io/github.com/loganjspears/joker/status.png)](https://drone.io/github.com/loganjspears/joker/latest)
[![Build Status](https://drone.io/github.com/notnil/joker/status.png)](https://drone.io/github.com/notnil/joker/latest)


The goal of Joker is to be an open source and fully functioning poker backend in go. Joker will attempt to support roughly the same feature set as Full Tilt Poker.
Expand All @@ -11,19 +11,19 @@ cmd holds the executable portions of Joker. This currently includes a comand li

## hand

The [hand package](http://www.godoc.org/github.com/loganjspears/joker/hand) is responsible for poker hand evaluation. hand is also home to card and deck implementations.
The [hand package](http://www.godoc.org/github.com/notnil/joker/hand) is responsible for poker hand evaluation. hand is also home to card and deck implementations.

## jokertest

The [jokertest package](http://www.godoc.org/github.com/loganjspears/joker/jokertest) provides convience methods for testing in the other packages. For example, jokertest's Dealer produces a Deck with a prearranged series of cards instead of ones in random order.
The [jokertest package](http://www.godoc.org/github.com/notnil/joker/jokertest) provides convience methods for testing in the other packages. For example, jokertest's Dealer produces a Deck with a prearranged series of cards instead of ones in random order.

## pot

The [pot package](http://www.godoc.org/github.com/loganjspears/joker/pot) tracks contributions from players and awards players with winning hands. It supports hi/lo split pots. (pot might eventually get merged into table)
The [pot package](http://www.godoc.org/github.com/notnil/joker/pot) tracks contributions from players and awards players with winning hands. It supports hi/lo split pots. (pot might eventually get merged into table)

## table

The [table package](http://www.godoc.org/github.com/loganjspears/joker/table) provides a table engine to run a poker table. Turn managment, player action requests, dealing, forced bets, etc are in this package. An example of a working table is available in th cmd section.
The [table package](http://www.godoc.org/github.com/notnil/joker/table) provides a table engine to run a poker table. Turn managment, player action requests, dealing, forced bets, etc are in this package. An example of a working table is available in th cmd section.
## util

util is a place for code shared by multiple packages, but otherwise wouldn't be exported. Might be converted to internal package in go 1.5.
4 changes: 2 additions & 2 deletions cmd/cli-client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strconv"
"strings"

"github.com/loganjspears/joker/hand"
"github.com/loganjspears/joker/table"
"github.com/notnil/joker/hand"
"github.com/notnil/joker/table"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions hand/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Poker hand evaluation and ranking written in go (golang)
To install run:

```
go get github.com/loganjspears/joker/hand
go get github.com/notnil/joker/hand
```

```go
Expand All @@ -15,7 +15,7 @@ package main
import (
"fmt"

"github.com/loganjspears/joker/hand"
"github.com/notnil/joker/hand"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions hand/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Package hand implements poker hand evaluation and ranking.

To install run:

go get github.com/loganjspears/joker/hand
go get github.com/notnil/joker/hand

Example usage:

Expand All @@ -14,7 +14,7 @@ Example usage:
import (
"fmt"

"github.com/loganjspears/joker/hand"
"github.com/notnil/joker/hand"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion hand/hand.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sort"
"strings"

"github.com/loganjspears/joker/util"
"github.com/notnil/joker/util"
)

// A Ranking is one of the ten possible hand rankings that determine the
Expand Down
4 changes: 2 additions & 2 deletions hand/hand_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/json"
"testing"

. "github.com/loganjspears/joker/hand"
"github.com/loganjspears/joker/jokertest"
. "github.com/notnil/joker/hand"
"github.com/notnil/joker/jokertest"
)

type testPair struct {
Expand Down
2 changes: 1 addition & 1 deletion jokertest/jokertest.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package jokertest

import "github.com/loganjspears/joker/hand"
import "github.com/notnil/joker/hand"

// Cards takes a list of strings that have the format "4s", "Tc",
// "Ah" instead of the hand.Card String() format "4♠", "T♣", "A♥"
Expand Down
4 changes: 2 additions & 2 deletions jokertest/jokertest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package jokertest_test
import (
"testing"

"github.com/loganjspears/joker/hand"
"github.com/loganjspears/joker/jokertest"
"github.com/notnil/joker/hand"
"github.com/notnil/joker/jokertest"
)

func TestDeck(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions table/game.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package table
import (
"errors"

"github.com/loganjspears/joker/hand"
"github.com/loganjspears/joker/util"
"github.com/notnil/joker/hand"
"github.com/notnil/joker/util"
)

// A Game represents one of the different poker variations.
Expand Down
4 changes: 2 additions & 2 deletions table/game_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package table
import (
"testing"

"github.com/loganjspears/joker/hand"
"github.com/loganjspears/joker/jokertest"
"github.com/notnil/joker/hand"
"github.com/notnil/joker/jokertest"
)

var tests = []struct {
Expand Down
2 changes: 1 addition & 1 deletion table/hands.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package table

import "github.com/loganjspears/joker/hand"
import "github.com/notnil/joker/hand"

// handCreationFunc represents the function signature for creating a hand.
type handCreationFunc func(holeCards []*hand.Card, board []*hand.Card) *hand.Hand
Expand Down
2 changes: 1 addition & 1 deletion table/hole_card.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package table

import "github.com/loganjspears/joker/hand"
import "github.com/notnil/joker/hand"

// CardVisibility indicates a HoleCard's visibility to other players
type CardVisibility string
Expand Down
2 changes: 1 addition & 1 deletion table/pot.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sort"
"strconv"

"github.com/loganjspears/joker/hand"
"github.com/notnil/joker/hand"
)

// Results is a mapping of each seat with its slice of results.
Expand Down
4 changes: 2 additions & 2 deletions table/pot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/json"
"testing"

"github.com/loganjspears/joker/hand"
"github.com/loganjspears/joker/jokertest"
"github.com/notnil/joker/hand"
"github.com/notnil/joker/jokertest"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"reflect"
"strconv"

"github.com/loganjspears/joker/hand"
"github.com/notnil/joker/hand"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions table/table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/json"
"testing"

"github.com/loganjspears/joker/hand"
"github.com/loganjspears/joker/table"
"github.com/notnil/joker/hand"
"github.com/notnil/joker/table"
)

func register() {
Expand Down
2 changes: 1 addition & 1 deletion util/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/loganjspears/joker/util"
"github.com/notnil/joker/util"
)

type combo struct {
Expand Down