Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Challenger-submission] #1 1.3 #31

Closed
haholm opened this issue Jul 30, 2022 · 27 comments
Closed

[Challenger-submission] #1 1.3 #31

haholm opened this issue Jul 30, 2022 · 27 comments
Labels
challenger This issue submits a new challenger

Comments

@haholm
Copy link

haholm commented Jul 30, 2022

-- IMPORTANT: By submitting this code you agree that your 
-- github username will be saved and shown on this profile

-- All Lua code within this code block will be executed
-- Code outside the onTurn function will only run once
-- If you want any persistent state between turns it might 
-- therefore be good to declare it here

-- This program will just go upwards

-- comments are overrated

function onTurn(context)
    local playerX = context.player.x
    local playerY = context.player.y
    
    if playerY > 8 and playerY < 5 and STD__GET_TILE(context, playerX, playerY + 1) == 0 then
        return tostring(playerX + (playerY - 8) + 1) .. "," .. tostring(playerY + 1) .. "," .. tostring(playerX + (playerY - 8) + 2) .. "," .. tostring(playerY + 1)
    end

    if not STD__CHECK_OUT_OF_BOUNDS(playerX, playerY - 1) and STD__GET_TILE(context, playerX, playerY - 1) == 3 and not STD__CHECK_OUT_OF_BOUNDS(playerX, playerY - 2) and STD__GET_TILE(context, playerX, playerY - 2) == 3 then
        return "1"
    end

    return "0"
end

function onJump(context)
    return "0"
end
@haholm haholm added the challenger This issue submits a new challenger label Jul 30, 2022
@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
User: haholm
Script-id: 16754832-98d7-4d61-9c5c-b29eabd5e3ec
Thanks for submitting!
Your code is being processed...

@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[WIN] Opponent: 0f152710-dcbb-49df-8566-d82afaa2fd67 | Match
[SUCCESS] Opponent: 2b04c102-556f-4522-b0b4-77f531c2f46d
Match
[LOSS] Opponent: bd8d0156-bd11-4ff9-b13c-b222d4abefa6 | Match

@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[SUCCESS] Opponent: 817b32b1-2977-4d34-b56e-133454c949f1

@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: e3a92717-b5e7-4112-a529-cf7183454921
Error:
Invalid move: Tile (4,1) is occupied

Match

@hampfh hampfh mentioned this issue Jul 30, 2022
@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: 966be351-a717-4c74-9190-807e0a407fcb
Error:
Invalid move: Tile (4,1) is occupied

Match

@hampfh hampfh mentioned this issue Jul 30, 2022
@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: f95962fb-c0d5-405f-ad89-d78a094805be
Error:
Invalid move: Tile (4,1) is occupied

Match

@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: 5f430493-31ed-4439-87a7-782604564e4c
Error:
Invalid move: Tile (4,1) is occupied

Match

@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: f23dbe45-22fd-4409-9943-739651279bfe
Error:
Invalid move: Tile (4,1) is occupied

Match

@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: 79c17c11-48a4-424e-9a56-759309ab4b02
Error:
Invalid move: Tile (4,1) is occupied

Match

@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: cba2eedc-eaf0-4b15-9b4e-bf924cc7474e
Error:
Invalid move: Tile (4,1) is occupied

Match

@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: f1cbfd73-176b-46ff-bd02-38a9a5f43e40
Error:
Invalid move: Tile (4,1) is occupied

Match

@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: 5375c5c9-002a-4b10-853a-d5e42ad97dad
Error:
Invalid move: Tile (4,1) is occupied

Match

@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: c1470855-52fd-4e2f-81a9-b59ce29945ff
Error:
Invalid move: Tile (4,1) is occupied

Match

@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: d94f9c1e-8d5d-4a97-8c3f-e81f102a1f82
Error:
Invalid move: Tile (4,1) is occupied

Match

@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: 661deec5-1967-4f0c-82de-69b3b01e47a1
Error:
Invalid move: Tile (4,7) is occupied

Match

@hampfh hampfh mentioned this issue Jul 30, 2022
@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: c0412c19-887b-4762-9fa9-d93aab383d83
Error:
Invalid move: Tile (4,1) is occupied

Match

@hampfh hampfh mentioned this issue Jul 30, 2022
@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: 39e70f81-7b24-4108-9cf0-f1e14f0f5066
Error:
Invalid move: Tile (4,1) is occupied

Match

@hampfh hampfh mentioned this issue Jul 30, 2022
@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: 1ad25e74-17a9-41e4-a042-47a66648c382
Error:
Invalid move: Tile (4,1) is occupied

Match

@hampfh hampfh mentioned this issue Jul 30, 2022
@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: d841e224-57bb-4c8c-9743-b7acf54f8d0c
Error:
Invalid move: Tile (4,1) is occupied

Match

@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: e62c6a3e-3123-4041-ab24-05382f85f23c
Error:
Invalid move: Tile (4,7) is occupied

Match

@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: f4e7e93d-fc25-4b64-9068-39506c1d7e9e
Error:
Invalid move: Tile (4,7) is occupied

Match

@hampfh hampfh mentioned this issue Jul 30, 2022
@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[WIN] Opponent: 367e1c4b-ff88-40a8-a054-9718470fb7fd | Match

@hampfh hampfh mentioned this issue Jul 30, 2022
@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: 1da0638b-0912-4672-8237-4f5bf502c6b4
Error:
Invalid move: Tile (4,1) is occupied

Match

@hampfh
Copy link
Owner

hampfh commented Jul 30, 2022

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: adbd08b3-8504-4b72-83ae-23b843313692
Error:
Invalid move: Tile (4,1) is occupied

Match

@hampfh
Copy link
Owner

hampfh commented Feb 21, 2023

[THIS MESSAGE IS AUTOMATIC]
[WIN] Opponent: fe128b4c-b947-4420-990a-7658f8c2dc48 | Match

@hampfh
Copy link
Owner

hampfh commented Feb 27, 2023

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: e25da2fb-8bc8-4b19-b6af-69c5a64c6af9
Error:
Invalid move: Tile (4,7) is occupied

Match

@hampfh
Copy link
Owner

hampfh commented Jun 3, 2023

[THIS MESSAGE IS AUTOMATIC]
[ERROR] Opponent: 6abd680d-558a-4d10-8a94-72ffccfa949c
Error:
Invalid move: Tile (4,8) is occupied

Match

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
challenger This issue submits a new challenger
Projects
None yet
Development

No branches or pull requests

2 participants