Code Monkey home page Code Monkey logo

elgo's Introduction

Elgo - Elo matchmaking module in Go

Go Reference codecov Go Report Card CI

Elgo is a relatively small package that provides a matchmaking pool and a simple calculator for ELO-like rating with configurable K-factor.

It's in the very early stages of development, expect bugs and unfunushed stuff.

Why?

The main idea is to implement some sort of a basic matchmaking tool for 3rd party apps or depelopers to use. There are plans to release it as a CLI, a Docker container and provide a server API for developers to use it as a package.

How it works?

How it works diagram

elgo's People

Contributors

dependabot[bot] avatar ravsii avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

ahnakbari

elgo's Issues

Add an option to remove a player from the queue

It's already implemented here

elgo/pool.go

Lines 197 to 201 in 3b03db7

func (p *Pool) removePlayersFromQueue(players ...*poolPlayer) {
for _, player := range players {
delete(p.players, player.player.Identify())
}
}

It just needs some user-api to interact with that. Also watch out for race conditions

Add server implementation of a pool

Right now users can only do elgo.NewPool() from their code.

Implement some kind of a server (probably using default net.Listen) to allow using this as CLI or something

Add golangci-lint

Would be great to add .golangci-lint config to the project. The config itself can be configured later, by default enable-all will do.

And a github action for that as well.

Configure releases

Currently releases are created automatically on every push to main. This is probably spammy, so it needs to be configured somehow differently.

Implement FIFO\Queue pool

I don't know how exactly to do that right now in terms of API. Could be as a separate pool, or an options to NewPool()

Related: #7

Add better README.md

Current README is just kind of a TODO list. We dont want that.

The desirable changes are:

  • Add (copy) some examples and how to call modules
  • Add d2lang diagrams for visual explanation

Implement LIFO\Stack pool

I don't know how exactly to do that right now in terms of API. Could be as a separate pool, or an options to NewPool()

Add a CLI tool

CLI should allow users to run pool as either a grpc or a socket server

Blocked by: #5 #9

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.