Skip to content

A Julia game strategy interface for the Simuro5v5 platform.

License

Notifications You must be signed in to change notification settings

npuv5pp/V5RPC.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

V5RPC.jl

V5RPC module for the Simuro5v5 platform. Written in Julia.

Install

  1. Install Julia.

  2. Run following command in Julia REPL:

    ]add https://github.com/npuv5pp/V5RPC.jl
    

Usage

Every strategy type is a subtype of Strategy. Suppose we have

struct MyStrategy <: Strategy end

Then the following overloaded methods can be given. For more information, refer to the V5RPC documentation.

on_event(::MyStrategy, ::Int32, ::V5RPC.EventArguments)::Nothing
get_team_info(::MyStrategy, ::typeof(Version.V1_1))::String
get_instruction(::MyStrategy, ::V5RPC.Field) # returns [(l, r), ...] or (wheels, V5RPC.ControlType.Reset)
get_placement(::MyStrategy, ::V5RPC.Field) # returns [(x, y, rotation), ...]

Then construct a V5Server and run it.

run(V5Server(MyStrategy(), 20000))

About

A Julia game strategy interface for the Simuro5v5 platform.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages