from django.urls import path
from . import views

urlpatterns = [
    path("",                      views.WalletView.as_view(),             name="wallet"),
    path("transactions/",         views.TransactionListView.as_view(),    name="wallet-transactions"),
    path("spin/",                 views.SpinView.as_view(),               name="wallet-spin"),
    path("leaderboard/",          views.LeaderboardView.as_view(),        name="wallet-leaderboard"),
    path("predictions/",          views.PredictionListView.as_view(),     name="prediction-list"),
    path("predictions/<int:pk>/stake/",   views.PredictionStakeView.as_view(),   name="prediction-stake"),
    path("predictions/<int:pk>/settle/",  views.PredictionSettleView.as_view(),  name="prediction-settle"),
    path("predictions/<int:pk>/refund/",  views.PredictionRefundView.as_view(),  name="prediction-refund"),
    path("predictions/stale/",            views.StalePredictionsView.as_view(),  name="predictions-stale"),
    path("duels/",                  views.DuelListView.as_view(),      name="duel-list"),
    path("duels/<int:pk>/respond/", views.DuelRespondView.as_view(),   name="duel-respond"),
    path("duels/<int:pk>/order/",   views.DuelSubmitOrderView.as_view(), name="duel-order"),
    path("boost/",                  views.BoostView.as_view(),         name="boost"),
    path("coinflip/",              views.CoinFlipView.as_view(),      name="coinflip"),
    path("ttt/",                   views.TicTacToeListView.as_view(), name="ttt-list"),
    path("ttt/open/",              views.TicTacToeOpenView.as_view(), name="ttt-open"),
    path("ttt/<int:game_id>/join/",  views.TicTacToeJoinView.as_view(),  name="ttt-join"),
    path("ttt/<int:game_id>/move/",  views.TicTacToeMoveView.as_view(),  name="ttt-move"),
    path("ttt/<int:game_id>/",       views.TicTacToeDetailView.as_view(), name="ttt-detail"),
    path("checkers/",                  views.CheckersListView.as_view(),   name="checkers-list"),
    path("checkers/open/",             views.CheckersOpenView.as_view(),   name="checkers-open"),
    path("checkers/<int:game_id>/",    views.CheckersDetailView.as_view(), name="checkers-detail"),
    path("checkers/<int:game_id>/join/", views.CheckersJoinView.as_view(), name="checkers-join"),
    path("checkers/<int:game_id>/move/", views.CheckersMoveView.as_view(), name="checkers-move"),
    path("maua/",                      views.MauaListView.as_view(),    name="maua-list"),
    path("maua/open/",                 views.MauaOpenView.as_view(),    name="maua-open"),
    path("maua/<int:game_id>/",        views.MauaDetailView.as_view(),  name="maua-detail"),
    path("maua/<int:game_id>/join/",   views.MauaJoinView.as_view(),    name="maua-join"),
    path("maua/<int:game_id>/start/",  views.MauaStartView.as_view(),   name="maua-start"),
    path("maua/<int:game_id>/move/",   views.MauaMoveView.as_view(),    name="maua-move"),
]
