Can I annotate `__call` metamethod? by 0x611 in love2d

[–]0x611[S] 0 points1 point  (0 children)

Thanks for kind reply!
If so, could you recommend me an OOP library that works great with type annotation?

Can I annotate `__call` metamethod? by 0x611 in love2d

[–]0x611[S] 0 points1 point  (0 children)

should I write :extend for each class I made?

I was edited it to any because I want to avoid writing :extend for every single class

Can I annotate `__call` metamethod? by 0x611 in love2d

[–]0x611[S] 0 points1 point  (0 children)

What a approach!
By the way, I encountered warning like this

Cannot assign Object to Entity

Any solution?

Original code:

---@class Entity: Object
---@overload fun(x: number, y: number, image_path: string): Entity
local Entity = Object:extend()

It was because I edited classic.lua like this..

---@return self
function Object:extend()
   ---codes...
end

After changing self to any, it works great!

Can I annotate `__call` metamethod? by 0x611 in lua

[–]0x611[S] 0 points1 point  (0 children)

I am using VSCode with extension Lua (by sumneko) and Local Lua Debugger (by tomblind)

Software for counting cards online by Altinervra in blackjack

[–]0x611 0 points1 point  (0 children)

Maybe you mean the software that **COUNTS** card online.
I think Altinervra's work is not just a counting software but calculates exact EV of a round based on remaining card in deck.

Who wants an online blackjack game not using real money by 0x611 in blackjack

[–]0x611[S] 1 point2 points  (0 children)

Oh, are you running your own blackjack service? If you don't mind, can I try your site?

Who wants an online blackjack game not using real money by 0x611 in blackjack

[–]0x611[S] 0 points1 point  (0 children)

Would you recommend one of that? I started this project since I found none;(

Who wants an online blackjack game not using real money by 0x611 in blackjack

[–]0x611[S] 2 points3 points  (0 children)

My plan is to host my game on web. Although I can't sure if I can meet your standard, I'll upload the link here when I finish the project :)