25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
zouv dad129dafd modify readme 8 yıl önce
examples modify readme 8 yıl önce
include add 8 yıl önce
src add src 8 yıl önce
Emakefile add compile script 8 yıl önce
README.md modify readme 8 yıl önce
rebar add compile script 8 yıl önce
rebar.config add compile script 8 yıl önce

README.md

erlbte

Behavior Tree for erlang

examples

exp1

testing

examples/bte_ai_test.erl
test(FileName) ->
  case file:read_file("json/" ++ FileName) of
    {ok, EBinary} ->
      {ok, BteStatus} = bte_ai:init(EBinary),
      io:format("s1:~p~n", [BteStatus#r_bte_status.status]),	
      BteStatus1 = bte_ai:tick(BteStatus),
      io:format("s2:~p~n", [BteStatus1#r_bte_status.status]),
      ok;
    _ ->
	  skip
  end.
  • how to test
    • bte_ai_test:test("test2.json").