Chat:World/2021-09-21

From CG community
Revision as of 05:29, 22 September 2021 by Chat Log (talk | contribs) (Created page with "<img src=/a/70683907437184> Emmaplayz: . <img src=/a/70683907437184> Emmaplayz: . File:Default_avatar.png MeBen: Emmaspamz <img src=/a/70503861016506> saadhere: hola wo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Emmaplayz: .

Emmaplayz: .

Default avatar.png MeBen: Emmaspamz

saadhere: hola world

dreadylein: hola saadhere

Default avatar.png Lasinluv: print("Hello world!")

Default avatar.png Lasinluv: :>>>

Default avatar.png Ciomak: :

Default avatar.png DinFuc: Hi

Default avatar.png DinFuc: How can I pass the Strike Back?

Default avatar.png DinFuc: I'm just started

saadhere: never played bud

saadhere: good luck with it

Westicles: Seek thee a man with brows of lightning

BlaiseEbuth: :3

derjack: E:

Thorcode: just change the first y to x

algorithmbear: morning

Default avatar.png Marec: Blyat davai mai bot faster

derjack: oO

Uljahn: understandable, have a nice day, Automaton2000

Automaton2000: i know what to do for now

ESMAKING: Can i make a private clash of code game, where i play a contribution

[CG]Thibaud: a specific one ?

[CG]Thibaud: you can't select the puzzle you play in Clash of Code, even in private mode

ESMAKING: Okay, thanks.

Default avatar.png DGTV11: hi

TimothyAlexisVass: s='100001'

TimothyAlexisVass: JS: console.log(s.replace(/(0+)/g,'x $1 '))

TimothyAlexisVass: > 1x 0000 1

TimothyAlexisVass: How do I do this with Python re.sub ?

BlaiseEbuth: Do you know python has a complete documentation?

TimothyAlexisVass: The solution I've come up with after looking at the documentation seems too complicated.

derjack: the documentation: i = i+1 // increases i by one

TimothyAlexisVass: neither \1 or $1 worked to get the captured group.

BlaiseEbuth: Python have a re module for regex

BlaiseEbuth: *has

TimothyAlexisVass: So the answer is \\1... The backslash needs to be escaped.

TimothyAlexisVass: re.sub( r'(0+)', 'x \\1 ', M)

MatuSmurf: im gay

Default avatar.png JW01: hi can anyone help with the montecarlo tree search in tic tac toe?

derjack: what problem do you have

Uljahn: JW01: guess you should know what multiarmed bandits are, how to apply UCB1 formula and how to build a game tree, the rest is quite easy

Default avatar.png JW01: ok i will try to solve it now

Default avatar.png JW01: thanks

Uljahn: ah you mean MCTS exercise puzzle

Uljahn: or not...

Default avatar.png JW01: um yea

AllYourTrees: oooh new editor bracket highlighting nice

BlaiseEbuth: :nauseated_face:

derjack: Actionbytes already made a sim?

Astrobytes: nope

derjack: youre quite high in lb eh

Astrobytes: Yeah it's just one of a couple of simple strategies I noticed. Nothing fancy.

derjack: use last provided action?

Astrobytes: no not like that

Astrobytes: If you watch a few games you can see it

derjack: i dont want to learn the game. i have nn to do that

Astrobytes: lol

Miki09: The brackets in ide code are now GOLD?

Astrobytes: Changes with nesting

derjack: they are legend for legend people

darkhorse64: Yes, I like red all over

darkhorse64: re LOA, Mark Winands says that, in rare occurences, you can run out of moves. The issue is that there is no consensus on the rule to apply. Either say no moves is a loss or say no moves for the opponent is not a victory condition because it is not the game goal. I am inclined to implement a "pass" move et let the game going on

Astrobytes: Yes, that seems a sensible solution

struct: ah I can see now

struct: how a player cant mvoe

darkhorse64: I doubt it happens in practice but why leave a hole ?

struct: making player los would be simpler to code

struct: lose*

Astrobytes: But it could still theoretically end in a draw

Astrobytes: If the other player does not manage to connect all pieces

darkhorse64: Yes a bit easier but not that much. Bad players will certainly draw a lot. I feel like shortening the game to 150 turns. Games between strong human players are even shorter

struct: but why limit it to 150?

darkhorse64: to shorten the matches in the arena

darkhorse64: I prefer having more time to think during a turn rather than lengthy useless battles

struct: ok I tried on ludii

struct: and it seems to be a pass

derjack: can you give an example of out of moves

struct: ofc

Thorcode: why clash of code count a sec

Thorcode: why?

eulerscheZahl: hello

eulerscheZahl: one of you banned a troll yesterday. now he's haunting in my private messages :/

derjack: struct checkers have 300 turns limit and it takes quite some time for full submit

Thorcode: really

struct: https://i.imgur.com/MSDY9xw.gif

struct: jacek

struct: this is an example where p2 cant move

derjack: thankies

derjack: umm

Thorcode: wow you know the game that I don't even know the rule

derjack: black can move the lone checker

struct: no

struct: because you cant jump over enemy pieces

Thorcode: black can move another move?

derjack: i mean the center one. up and down

Thorcode: cuz that moves is silly

struct: the top left one?

Thorcode: yeah the only survive one

Thorcode: yeah

struct: There are no possible moves for black after it has 2 pieces

struct: in that situation

derjack: you mean after the center black is out?

struct: after I eat the first black piece

struct: black has no more moves

derjack: oh lol its gif

derjack: sorreh

struct: :D

derjack: didint notice

Thorcode: what does this code do guys

Thorcode: print(c.monthrange(y,m)[1])

Thorcode: oh so that we can' t jump over enemy piece

struct: yeah

struct: and the jump distance must be equal to the number of pieces on that line

Thorcode: what the name of the real game

struct: lines of action

Thorcode: or this is the game you make

struct: I didnt make it

struct: I played it on my pc using ludii

struct: https://ludii.games/

Thorcode: oh

Thorcode: I thought that you make that game

Thorcode: but that game look fun

struct: darkhorse64 ill try to finish the bot today to check how easy is to make an ai for it

struct: I doubt its easy

struct: eval seems quite hard

derjack: maybe ill make the boss :imp:

struct: cant wait to see your code :D

darkhorse64: There is no shortage on LOA eval litterature. The real issue is to run it efficiently.

AntiSquid: what is LOA ?

darkhorse64: Lines Of Action. Also the subject of my new contrib

AntiSquid: oh ... google was directing me to Lua and other stuff https://www.librarything.com/topic/87541

derjack: i think i have an idea of wincheck in bitboard

struct: besides floodfill?

derjack: welp, the floodfill :v

struct: I think its simple to do actually

struct: its easier than getting the moves

struct: imo

derjack: "The game has an average branching factor of approximately 29 and an average game length of around 44 ply" not so bad

struct: 44 seems very low

darkhorse64: ludii yavalath playouts/s 65000 :rofl:

struct: its low for every game I think

darkhorse64: 980 games in the library. Lots of ideas to pick

derjack: is it that logic language?

darkhorse64: yep. GGP language

derjack: so it 'compiles' game on the fly?

derjack: so its not that low after all

struct: it detected 2 plys before I won

struct: not bad :p

struct: no eval for loa in ludii :(

struct: Maybe it can even beat my ai like this

struct: 160 iterations per sec on loa

jacek: 160 playouts?

eulerscheZahl: that sounds a lot. if you use 40 year old hardware

jacek: or man

Default avatar.png Marquitux: Hello

Default avatar.png Marquitux: Is there a way to practice testing in Python

Emptiness000: u can use repl.it

Emptiness000: its an online virtual environment that helps u to run the code

VilgotanL: mogus

gilufin: the color in the editor is new?

Default avatar.png Marquitux: Thanks!

Default avatar.png Marquitux: But not need of an IDE but more of practical exercices

Default avatar.png KashmiriNoodle: (╯°□°)╯︵ ┻━┻

BlaiseEbuth: (╯°□°)╯︵ ǝןpooNıɹıɯɥsɐʞ

BlaiseEbuth: ┬─┬ノ( º _ ºノ)

karlo.ks: amogus

jacek: :upside_down:

Default avatar.png flurk: (╯°□°)╯︵ ┻━┻

BlaiseEbuth: xǝןɐ t'︵ \(°□°)/ ︵'b

BlaiseEbuth: ┬─┬ノ( º _ ºノ)

Wontonimo: (╯┬─┬)╯︵ o ‾ o

struct: jacek are you going to use magic on loa?

struct: oh on loa connections can be made on diagonals

struct: (╯°□°)╯︵ ┻━┻

jacek: eeyup

jacek: i havent started the sim yet

Astrobytes: magic?

jacek: friendship

struct: bitboard magic Astrobytes

struct: https://www.rhysre.net/fast-chess-move-generation-with-magic-bitboards.html

Astrobytes: I know what magic bitboards are yeah, I was just confirming

struct: i need to understand this magic

Astrobytes: Plenty documentation (and examples) out there

struct: yeah

struct: but i think ill start with kindergarten bitboards

struct: my goal is to beat ludii rollouts

jacek: i dont use magic on chess either

struct: did you ever figure castling?

jacek: hm?

jacek: i have castling but nothing fancy

struct: I thought you had troubles doing it

jacek: chess960 castling is weird, but i managed to do it

jacek: encountered many bugs

struct: I think that was i

struct: it**

codeing: https://play.typeracer.com?rt=16kxukwjds

codeing: Hello, does anyone want to mke a race ?

codeing: great the last one.

jacek: #typeracer

codeing: for sure

Default avatar.png CrispyBacon1764: how much velocity do you get from 100% thrust for 1 game tick?

BlaiseEbuth: 53.8. But that's because I've a promotion code.

Default avatar.png CarmelOfLuck: what should i learn phython or lua?

BlaiseEbuth: None.

Default avatar.png CarmelOfLuck: why

BlaiseEbuth: Why not?

Default avatar.png CarmelOfLuck: because i want to learn to code

BlaiseEbuth: So you need a programmation language. Not python ot lua.

Default avatar.png CarmelOfLuck: oh what should i learn than?

BlaiseEbuth: Joking. Learn what you want, even python or lua...

Default avatar.png CarmelOfLuck: oh ok

BlaiseEbuth: But.

Default avatar.png CarmelOfLuck: ?

BlaiseEbuth: There's no absolute answer to your question

Default avatar.png CarmelOfLuck: bru

Default avatar.png CarmelOfLuck: yes there is

BlaiseEbuth: What language depend of what you want to do...

Default avatar.png CarmelOfLuck: one that will help me code a game

BlaiseEbuth: Erf... The grat classic

BlaiseEbuth: *great

Default avatar.png CarmelOfLuck: what do you mean

Default avatar.png safoud: C++ , c#, java these work best for game development

Default avatar.png Karrodin: need some help on one of the early Loop tasks...i am outputting what they want, but no matter what i ouptut...it esays its expects "Nothing"

Default avatar.png CarmelOfLuck: oh ok thanks

BlaiseEbuth: Just that "I don't know how to code but my objective is to create a game"

Default avatar.png Karrodin: new to the site, so i am getting used to its idiosynchracies

BlaiseEbuth: minus java

Default avatar.png Karrodin: its the Triforce tasks, if anyone is familiar with it (i do so hate asciiart)

BlaiseEbuth: Nobody healthy does...

BlaiseEbuth: Aren't you fulfilling lines with spaces?

Astrobytes: I would definitely use 'Phython' for making games. Especially if I had never programmed anything.

Default avatar.png Karrodin: not sure what you mean by fulfilling lines with spaces

Default avatar.png Karrodin: i have the exact matching pattern, and it acts like it wants "nothing" no response at all :)

Default avatar.png Karrodin: got it...finally

Default avatar.png Karrodin: it didn't like my StringBuilder

alexanderi: hi everyone! is it possible somehow to adjust colors in the IDE?

struct: dont think so :(

alexanderi: that's unfortunate.. ok

Westicles: they recently change. people seem to hate it so maybe they will revert

alexanderi: Hope sow. Apart from being too flashy, there are some inconsistencies. Braces within the line turn from orange to purple and then to light blue. That's counterintuitive and makes code harder to read.

alexanderi: *so

PatrickMcGinnisII: kewl braces and parens look like pride flags

mehdilh: Hello , I have a question , how does the ranking in clash of code works , do we have to always be in the 1 2 3 places to gain rank or ?

Erossi: ranking is average of all games not just clash of codes

mehdilh: im talking about the clash of code ranking

Erossi: oh yes then.

PatrickMcGinnisII: CoC points will decay over time if you don't play.

mehdilh: Thanks

Default avatar.png Redwings77: do u have the equation

Default avatar.png Redwings77: for decay

mehdilh: there is an equation :o

mehdilh: i guess not

Default avatar.png Redwings77: like at what rate do you lose score

Default avatar.png Redwings77: if inactive

PatrickMcGinnisII: http://chat.codingame.com/pastebin/8bba2b8a-8bdf-4aca-9e6f-59cf227f3afc

Erossi: Im not sure if you loose point if you became 8 out of 8.

PatrickMcGinnisII: if you go to your profile and hit the ?, it will describe it all

Default avatar.png Redwings77: thanks

PatrickMcGinnisII: http://chat.codingame.com/pastebin/2fc80e25-0a01-4e2f-bc0e-b7fec6d52ffe

mehdilh: thank you

Emmaplayz: hi

Default avatar.png Armangh: I'm doing Mars Lander episode 2, where you're meant to use angles as well. I can't seem to change my angle for some reason

Default avatar.png Armangh: anyone bored to take a look

Default avatar.png Armangh: we good solved it

Default avatar.png Armangh: bracket management

Default avatar.png Archybaldie: So i wrote a solution to the temperatures one, hated my solution but it worked. Came back to it a few days later and while it's not "good" i actually kinda like it now.

Default avatar.png CrispyBacon1764: is there a way to use tensorflow?

Emmaplayz: is anyone else bored

kshncodes: yeah

Wontonimo: hey Armangh, if you are still around I could give you hand

Default avatar.png Armangh: i took care of it thanks tho

Wontonimo: what are you working on now?

Thorcode: this the first time I almost felt asleep in the morning

Thorcode: learning online suck

Emmaplayz: how dddo u code

Thorcode: learn from bored in school

Wontonimo: you've been playing ClashOfCode since way back in Winter 2020 Emmaplayz, what do you mean "how do you code"?

Thorcode: gosh learning online so sleepy that I can't even write print("") in python

Emmaplayz: i mean i don.t play

struct: hi Wontonimo

Wontonimo: :wave:

Wontonimo: what have you been doing to learn coding Emmaplayz? Have you tried tutorials?

struct: Do you by any chance know the reverse of (1ULL << n) - 1;

struct: that will fill all bits until index n to 1

struct: but I want the reverse now :/

struct: fill all bits above n

Emmaplayz: yes and pls no more qestons

Wontonimo: x = (1ULL << n) - 1; n = __builtin_ctzl(x + 1);

Emmaplayz: im just trying to find out myself

Wontonimo: oh, i misunderstood struct

struct: it still helped somehow lol

Westicles: Emmaplayz, if coding is too tough you might look into small engine repair. That is a cool job too

struct: (1ULL << (bit + (8 * distances[0]))) - 1, ~((1ULL << (bit + 1 - (8 * distances[0]))) - 1),

Wontonimo: how about just let's say F = 111111111111111... then filling all bits above n is F ^ ( ((1ULL << n) | (1ULL << n) - 1 ) )

struct: not pretty though

struct: the first is the normal one

Wontonimo: F ^ ( (1ULL << (n+1)) - 1 )

struct: ty

struct: that was it

struct: the + 1

struct: but I need to flip

Wontonimo: the classic "off by one"

struct: in my case

Wontonimo: won't work for n = max

Wontonimo: for ULL

Wontonimo: it will push the 1 off the left and leave you with all 0's ... then, oh, it will work

Wontonimo: golden

Wontonimo: what's this bit-twiddling for?

struct: lines of action

struct: I need to check if there is an opponent piece on a line

struct: before my bit that I want to move

struct: if there is a bit on that line

struct: because I cant jump over enemy pieces

Wontonimo: yeah, that's a neat game

struct: never played

struct: seems very hard to play

struct: on checkers, chess, breakthrough I can see whats happening

struct: but not here

Wontonimo: I'm kinda burnt out on board games though, so for now i'm gonna pass. That one looks fun to play because I don't know anyone who has played before.

struct: yeah board games can get like that

struct: I mostly enjoy due to the optimizations I can do

Wontonimo: i mean, i'm burnt out of programming them. but playing it irl looks like a fun parlor game

Wontonimo: Emmaplayz, have you watched "The Coding Train" on youtube? He is the "Bob Ross" of coding javascript.

Wontonimo: you are awesome at those optimization

Emmaplayz: thx wontonimo ill do it

Wontonimo: if you do, be sure to search for his intro videos. He has over 1000 videos I think. A limitless supply

Emmaplayz: thx for your help

struct: does he use js on his intro videos?

Wontonimo: i'm going to say "yes", but if you know otherwise volunteer your superior wisdom

struct: I cant recall tbh

struct: I just watched a few videos

struct: ah it was processing that I watched

Wontonimo: he does a lot of processing

Wontonimo: or did

Wontonimo: i forget what graphic thing he is into lately

Wontonimo: p3 , which is processing v 3 i think

struct: Its a good way to learn I think

struct: the graphics can help some people understanding better

Wontonimo: solve "mountain of a mole hill". That took way more effort than an "easy" puzzle should have

Wontonimo: constraint propagation ... straight forward *if* I had read the write up throughly

Emmaplayz: .

Wontonimo: fun fact: you can hold your breath for the rest of your life

Wontonimo: ng everyone

Wontonimo: i'm out

Emmaplayz: .

ProCoder03: Good Morning !!

Default avatar.png Thunar: Morning?

WhaIe: Time zones, mate

Default avatar.png mr.bossman: nugs

Default avatar.png Thunar: time zones are not part of my equation.

Default avatar.png mr.bossman: main(i){for(;i<101;printf(i%3?"%d%s\n":"Fizz%2$s\n",i,i%5?"":"\rBuzz"+!(i%3)),i++);}