#⌨coders-cave

1 messages · Page 47 of 1

barren shale
#

If youre not using unity this is right

#

But in unity you'd use Range ibstead of Next

orchid frigate
#

Ah yea.i forgot that .Random was a unity exclusive

#

Or was it range

#

Not sure

barren shale
#

Its range

#

Random.Range is unity

#

Its from UnityEngine.Random

orchid frigate
#

Right I learned that when I tried to get a random int the normal way

barren shale
#

Not System.Random

orchid frigate
#

I didn't use unity and j couldn't do anything

barren shale
#

A bit confusing

#

Dont know why they did it that way

fierce epoch
#

okey

#

thanks u

barren shale
#

Np

fierce epoch
#

i

#

think my

#

"bot

#

bot"

#

v.05

#

is almost done

#

lol

orchid frigate
#

What

barren shale
#

Are you making a bot

#

That plays against it self ?

#

Bot vs bot ?

orchid frigate
#

Is there something like nav mesh in 2d because if that's the case then I don't think I would use it

#

I'm pretty sure there is

#

But nav meshes always confused me

fierce epoch
#

no

#

basically

orchid frigate
#

And litteorly never worked out for me

fierce epoch
#

it's ultra simple

#

no

#

it's a very simple script

#

for

#

tic tac toe

orchid frigate
barren shale
#

Xd

fierce epoch
#

The script check if he can win, if he can, he does, if he can't, he pick a random place to choose

#

so

barren shale
#

The thing that let you path find for a character?

fierce epoch
#

it's basically chance

orchid frigate
#

The thing that makes AI move

#

Yea

fierce epoch
#

but the bot will always win if he has the possibility

orchid frigate
#

Path finding

barren shale
#

Just write it yourself

#

Read about A*

#

I did it once

#

Not hard at all

orchid frigate
#

That's what i did

barren shale
#

Then why do you need a nav mesh

orchid frigate
#

Nav meshes are difficult to set up correctly

fierce epoch
#

my unity just crashed

barren shale
orchid frigate
#

And if you screw them up guess you have to delete litteorly everything

barren shale
#

To make it play better

fierce epoch
barren shale
#

Try to implement minimaxing in C#

#

fun practice

#

I never use unity shit in 2D tbh

#

Its all too glitchy

orchid frigate
barren shale
#

I just write my own stuff

fierce epoch
#

how do you want me to do a AI

#

lol

barren shale
#

Just read about minimaxing

#

And try to implement it

#

Theres sudo code on Wikipedia

#

Or whatever its called

#

I forgot

#

Its like a general fake programming language

#

Thats made for everyone to understand

orchid frigate
#

Minimaxing reminds me of my worst nightmare, room generating algorithms in unity

#

For some reason

barren shale
#

Minimax (sometimes MinMax, MM or saddle point) is a decision rule used in artificial intelligence, decision theory, game theory, statistics, and philosophy for minimizing the possible loss for a worst case (maximum loss) scenario. When dealing with gains, it is referred to as "maximin"—to maximize the minimum gain. Originally formulated for n-...

#

What

#

Room generation

#

So ez

#

Just need a bit of math

orchid frigate
#

Tell that to my keyboard that no longer exists

orchid frigate
barren shale
#

Why would u need enums

orchid frigate
#

I understand how to make them but I have no idea what they ar meant to be

orchid frigate
#

Like north east South West

barren shale
#

Just use numbers

#

0 1 2 3

#

Makes things simpler

orchid frigate
#

Makes sense

barren shale
#

Wanna face your right

#

+1

#

Wanna face your left -1

#

Simple

#

If its 4 make it 0

#

If its -1 make it 3

orchid frigate
#

Seems like it

fierce epoch
#

ok nice

#

so

#

idk how

barren shale
#

Want a brain fuck

fierce epoch
#

but with a certain configuration

#

my unity crash

#

with my game

barren shale
#

Do something like this

orchid frigate
#

Something that simplifies room generation is being able to load scenes inside a scene

orchid frigate
#

I did that once

barren shale
#

Yea

orchid frigate
#

An infine while loop

barren shale
#

Is it freezing ?

#

Or crashing

fierce epoch
#

that's possible

barren shale
#

There's a difference

#

Is it freezinf ???

orchid frigate
fierce epoch
orchid frigate
#

Ans it's very simple to make one

fierce epoch
#

but

#

it's

barren shale
#

Ok

fierce epoch
#

it's just unlucky

#

i guess

barren shale
#

Its an infinite loop

orchid frigate
#

Yea

fierce epoch
#

it's something random

orchid frigate
#

Very much infine

#

While true what

barren shale
#

If the board is full

orchid frigate
#

What is supposed to be true

barren shale
#

It would go o. Infinitly

orchid frigate
#

Is it inside the bool

#

Or something

fierce epoch
#

but

barren shale
#

Make sure when the board is full it breaks

fierce epoch
#

that was a bad idea

#

lol

orchid frigate
fierce epoch
#

that's the issue

orchid frigate
#

Or an if even

#

Wait no

barren shale
#

Try 0, 9

#

Instead of 0, 8

fierce epoch
#

my list stop at 8

barren shale
#

It might be exclusive

#

Yes

#

But i think its exclusive

#

So 0,9 gives you numbers between 0 and 8

#

If it gives an error

#

Its not

#

And btw

#

The else statement

#

Its not needed at all

#

It literally does nothing

fierce epoch
#

ah yes i'm dumb

#

lol

orchid frigate
#

Hmmm

barren shale
#

Did it work ?

fierce epoch
#

i just want to check in google if it's exclusive or not

#

so

#

i can try to not make my unity crash again

barren shale
#

Just try it

fierce epoch
orchid frigate
#

Unity when infine while loop be like

barren shale
#

🧊

fierce epoch
#

lol

orchid frigate
#

It litteorly freezes itself and a bit part of your computer
The first time I got it I couldn't access anything

fierce epoch
barren shale
#

So its exclusive

#

Cuz your using an integer

fierce epoch
#

lmfao

barren shale
#

I told u

fierce epoch
#

it froze again

barren shale
#

Im big brain

#

Nvm

orchid frigate
#

F

barren shale
#

Are you sure you saved ?

fierce epoch
#

"Unity resources consummation" = "Very high"

#

lol

fierce epoch
barren shale
#

Xd

orchid frigate
barren shale
#

Show me code again

fierce epoch
#

and it's when i clicked

orchid frigate
#

CPU must hate you rn

barren shale
#

Hmmmmmm

fierce epoch
#

that it crashed

#

not when bot used

barren shale
#

Oh wait

orchid frigate
#

I swear this chat has become my favourite lol

fierce epoch
barren shale
#

Even if you play it crash

#

Or only when bots play

barren shale
fierce epoch
#

i mean

#

i clicked

#

you can see the

#

the

#

hoover

#

i clicked and it crashed

#

but i guess it's because it calculated already the bot move

barren shale
#

Did you play

fierce epoch
#

idk

#

wait

#

yk what

#

join a call

#

imma screen shar e

barren shale
#

Vc

#

3

fierce epoch
#

ok

#

ok

#

it crashed

orchid frigate
#

We saw

#

So

barren shale
#

Send loop

fierce epoch
#

i send the loop ?

barren shale
#

Again

orchid frigate
fierce epoch
#
while (true)
            {
                int rand = Random.Range(0, 9);
                if (buttonList[rand].interactable)
                {
                    buttonTextList[rand].text = playerSide;
                    buttonList[rand].interactable = false;
                    ChangeSides();
                    break;
                }
            }
orchid frigate
#

Unreadable hagrid

#

Mobile users be like bruh

fierce epoch
#

wait

barren shale
#

So

fierce epoch
#
while (true)
{
    int rand = Random.Range(0, 9);
    if (buttonList[rand].interactable)
    {
        buttonTextList[rand].text = playerSide;
        buttonList[rand].interactable = false;
        ChangeSides();
        break;
    }
}
barren shale
#

Instead of the button list

#

Do you have any other way

#

You keep track of the board

fierce epoch
#

wdym

barren shale
#

Like an array that tells u if a square is empty or x or o

fierce epoch
#

i can verify if the text of the button is O or X

#

and if it isn't

#

it means it's available

barren shale
#

Oh

#

Ok

fierce epoch
#

the

barren shale
#

Lets try this

fierce epoch
#

buttonTextList[rand].text

#

this returns the text of the button i random inted

barren shale
#

Write a function that returns true if the board is full

#

To do that

#

Just make a loop over the button list

#

If one of the buttons text is empty return false

fierce epoch
#

OHHH

#

BRO

#

I KNOW WHY

barren shale
#

And after the loop is done return true

fierce epoch
#

WAIT

#

ok

#

let me

#

jsut

#

just

#

basically

#

i have a counter

#

that count the turns

#

and if it reaches 9

#

it stops the game

#

but

#

i forgot to add the ++ to the bot turn

barren shale
#

Xd

#

Nice

fierce epoch
#

it

#

might be that

#

not sure tho

#

ah no

#

i crashed again

#

lol

barren shale
#

Uhhh

#

But of course its not

fierce epoch
#

let me 10 seconds

#

i just think

barren shale
#

Because that doesnt have to do anything with the loop

#

The way your doing it is not the best way

fierce epoch
#

i think

#

i know why it doesn't work

#

i'm dumb

#

i did my code like a dumbass

barren shale
#

Indeed

fierce epoch
#

thanks

barren shale
fierce epoch
#

basically

#

i did it so

#

when moveCount reach 9

#

it propose to play again

#

but i did it before i introduced the bot

#

so

#

even if the movecount reach 9

#

it change side anyway

#

cuz it considere the game is over

#

and there

#

the bot try to find a case

#

where

#

he can play

#

and he can't find one

barren shale
#

And the board is full

fierce epoch
#

cuz they're all used

barren shale
#

Yea

fierce epoch
#

yep

#

nice

#

so i'll just do a else

#

¯_(ツ)_/¯

barren shale
#

What else

fierce epoch
#

like this

barren shale
#

Oh ok

fierce epoch
#

i hope i won't crash for the 6th time

#

IT CRASHED AGAIN

barren shale
#

Rip

fierce epoch
#

i need

#

to

barren shale
#

Remake the game

fierce epoch
#

think

barren shale
#

Woooooo

fierce epoch
#

no

barren shale
#

REMAKE REMAKE REMAKE REMAJE

fierce epoch
#

it's just the bot making it crash

barren shale
#

The more you remake it

#

The better it become

#

REMAKE

fierce epoch
#

nob

#

nub

barren shale
#

u nub

fierce epoch
#

no

#

u nub

barren shale
#

Cant get tic tac toe to work

fierce epoch
#

no

barren shale
#

The way i approach a board game

fierce epoch
#

the tic tac toe v1 is done

#

not the 1.01

barren shale
#

Is i have a 2d array represent the board

#

I have an action struct to represent actions

#

Every turn i check if the game is done

fierce epoch
#

🤫

barren shale
#

Ur approach is different

#

Its BAD

fierce epoch
#

shush

barren shale
#

Remake

fierce epoch
#

shush

barren shale
#

NOW

hoary hound
fierce epoch
#

let me

#

done

#

this

#

or

#

shut

barren shale
#

Delete project

fierce epoch
#

forever

hoary hound
#

Delete OS and write it from zero or ur badCookiebre

barren shale
#

Cloud u agree right ?

#

See

#

Remake windows

fierce epoch
barren shale
#

Noo

fierce epoch
#

lol

barren shale
#

You wont leave

fierce epoch
#

uh

#

wzi t

#

wait

#

i need

#

to

#

revirw

barren shale
#

Wasted too much time getting to crabzilla

fierce epoch
#

review

#

my code

#

for something

barren shale
fierce epoch
#

2
5
8
6
7
8
8
6

#

ok

#

sorry for flood

hoary hound
#

I haven't seen uni approach so idk what you guys are talking about but sure

fierce epoch
#

i need to save this

hoary hound
#

Don't flood pls

fierce epoch
#

i just need it to check something

barren shale
#

If i make tic tac toe on phone faster than you make it on pc

#

How much gold u gib me ?

fierce epoch
#

shut

#

nub

barren shale
#

Bruh just minimize discord when you want to think

fierce epoch
#

ok

#

i do

#

byeb

barren shale
#

Bye

#

Finally nub is gone

fierce epoch
#

ok

#

i will jsut

#

just

#

build my project

#

and see when i crash

#

@barren shale

#

i think i know

#

it's because the code is going too fast

#

i just need to

#

slow it down

#

with a

#

sleep tim e

barren shale
#

Yea

#

Makes you know when the freeze is starting

fierce epoch
#

It now wait 3 seconds before the bot play

#

lol

#

i crashed on turn one

#

i crash everytime on round 1

orchid frigate
#

Is there a way to not use a while loop

fierce epoch
#

wait i'm

#

i'm lost

#

the game crash when i win against the bot

#

he doesn't like to loose

orchid frigate
#

What happens after you win

#

Is there another loop

#

Or something

barren shale
#

He just burns ur pc when he lose

tropic dagger
barren shale
#

I suggest a remaje

barren shale
orchid frigate
#

@fierce epoch ~show us your mod folder~ show us your win script

barren shale
#

Abd destroy this nub

tropic dagger
#

And you wouldn't want to use something faster than C# like C++?

barren shale
#

Its tic tac toe

tropic dagger
#

If you're writing for speed.

barren shale
#

Its fucking tic tac toe

#

Wht would u need speed

tropic dagger
#

You're trying to get working faster on Phone than PC, right?

barren shale
#

No

tropic dagger
#

Source: 835575169862860801

barren shale
#

Im trying to make it faster

#

Make the game

tropic dagger
#

Oh ok.

barren shale
#

Faster than he can make the game

tropic dagger
#

Makes sense.

barren shale
#

And its 2021

#

None care

#

They are mostly the same

tropic dagger
#

Use the pygame python library if you're trying to write it faster

barren shale
#

Since games are highly dependent on gpus now

barren shale
tropic dagger
#

Oof.

barren shale
#

Even tho he is slow

#

Sorry nub

#

No offense

orchid frigate
#

I hate any way of making a game that doesn't let you visualise the game while making it I just don't understand how it's possible to make a good game this way

fierce epoch
#

hi

tropic dagger
#

I mean it takes longer without a visual side, but it still gives the results you may want.

orchid frigate
#

Yea no I would rather test 1 time a month but be able to see the game then having to constantly run the game

barren shale
#

Go make this

fierce epoch
barren shale
#

@orchid frigate

#

Your brain

orchid frigate
#

Uhhhhh

barren shale
#

Will split in half

orchid frigate
#

UHHHHH

#

Pain

fierce epoch
#

@orchid frigate

#

it's called game over

#

but

#

it's the win

#

and

orchid frigate
#

Ok so

#

You say unity crashes

#

When you win

fierce epoch
#

not always

#

it can also crash in the middle of the game

tropic dagger
#

Oof.

orchid frigate
#

So the crashing is random

#

What other loops do you have

fierce epoch
#

lol

#

wait

orchid frigate
#

Wait a second

#

Are you sure it's freezing or are you just getting an error and the game pauses

fierce epoch
#

leme just

#

do

#

a

#

final test

tropic dagger
# fierce epoch

You have an extra space between the content of the sentence and the punctuation.

#

It's painful.

fierce epoch
#

Yes!
Yes !

tropic dagger
fierce epoch
#

i prefer the second option

orchid frigate
#

Makes sense

tropic dagger
#

It looks like you're meming.

#

Like there's a pause then an expletive.

fierce epoch
#

wait

#

i might have

#

found an issue

orchid frigate
#

Nice

tropic dagger
#

Oh?

orchid frigate
#

Fix it

tropic dagger
orchid frigate
tropic dagger
#

Damn.

#

Don't know what to say to that actually.

orchid frigate
#

I'm not very good with math ok

tropic dagger
#

What language is it in?

orchid frigate
#

C# unity

tropic dagger
#

I have tried C# but haven't gotten too far into it.

fierce epoch
#

ok so

#

the issue is

tropic dagger
#

Have not touched Unity.

orchid frigate
#

Ite pretty easy

fierce epoch
#

I can't win and the bot can't win when using his final shots

#

it's

orchid frigate
#

Compared to other things

fierce epoch
#

strange

orchid frigate
fierce epoch
#

it's really strange

#

honestly

hoary hound
#

Hello there what are you guys doing

orchid frigate
#

Coding

#

Liek coders

#

😎

fierce epoch
hoary hound
#

Damn

tropic dagger
hoary hound
#

Could have never guessed

orchid frigate
hoary hound
#

Thank you guys I'm lost without you aye

orchid frigate
#

Like coders 😎 😎 😎

tropic dagger
#

Anyone heard of Malbolge?

orchid frigate
#

I will have when I Google it

#

Ok I have now

tropic dagger
#

Look in images.

#

Die.

barren shale
#

Brain fuck is better

hoary hound
#

Yeah ywah

orchid frigate
#

This looks so painful in so many different ways

hoary hound
#

But brain fuck tho

#

Another level

tropic dagger
orchid frigate
#

@hoary hound Hello fellow coder 😎

tropic dagger
#

Brainfuck is wierd.

hoary hound
orchid frigate
#

We codin tho

hoary hound
#

I've seen too many cursed programming languages

tropic dagger
#

Brainfuck has logic behind it.

#

Befunge has confusing logic.

#

But Malbolge is just slamming on your keyboard.

#

And hoping that maybe something will happen

hoary hound
#

Hmm yes that sounds good for my mental sanity

tropic dagger
#

I unironically want to learn Assembly.

hoary hound
#

Ehh

#

I got an "How to learn hacking" book once, it started off with assembly, I dropped it after the first pages

#

Maybe in the future

fierce epoch
#

lessssssgoooooooooooo

hoary hound
#

But not now, no I'm not going to learn assembly

fierce epoch
#

bro

#

@orchid frigate i don't understand

#

when i play without bot, the game over is working very well

#

but when bot is activated

#

it doens't work at all

hoary hound
#

Are you still making tic tac toe

fierce epoch
#

lol

#

yes

#

but with a bot

#

but

#

it doesn't work

hoary hound
#

Any error?

fierce epoch
#

nope

#

just a crash

fierce epoch
#

and i only have 1 loop

hoary hound
#

Hold on

north dune
#

like this is IL in dnspy

#

and working like that is fucking painful

fierce epoch
#

cody

#

you

#

master

#

help me

#

please

north dune
#

whats up

hoary hound
#

This assembly

fierce epoch
#

I'm doing a tic tac toe

#

and

hoary hound
#

Pain

fierce epoch
#

fucking hell

#

it's crashing everytime i win against bot

hoary hound
#

Enjoy manipulating memory and registers by hand

fierce epoch
#

everytime bot win

north dune
fierce epoch
north dune
hoary hound
#

It's the closest language to machine language

north dune
#

count that as the bot celebrating its victory

hoary hound
#

I think

fierce epoch
north dune
#

uh

fierce epoch
#

and it shouldn't

north dune
#

so something in your gameover is fucked

fierce epoch
#

can you join

#

a vc

#

i won't speak

north dune
#

no

fierce epoch
#

just screen share

#

ah

#

ok

north dune
#

my net is too trash for that

#

ill help if i can here

fierce epoch
#

let's explain my script

north dune
#

no

#

before that

fierce epoch
#

ok

north dune
#

you are crashing/having an error

#

have you read the error

fierce epoch
#

I don't have any errors

#

showing up

north dune
hoary hound
#

Weird

barren shale
#

Rework is the best way

north dune
#

how can you crash without having an error

hoary hound
#

What compiler are you using

barren shale
#

Its not ceashubf

#

Its freezinf

#

I cant write

#

Its not crashing

#

Its freezing

fierce epoch
#

but

#

this loop

#

shouldn't be infinite

hoary hound
#

Oh

north dune
#

ah okay

hoary hound
#

Put print

fierce epoch
#

cuz i set it so i cn't

#

but it still freeze

barren shale
#

It is because of an infinite loop

hoary hound
#

Or whatever you can to print output

barren shale
#

The only reasob

north dune
#

show us the loop

barren shale
#

How many loops do you have

#

Showem all

fierce epoch
#
while (true)
{
    int rand = Random.Range(0, 9);
    if (buttonList[rand].interactable)
    {
        buttonTextList[rand].text = playerSide;
        buttonList[rand].interactable = false;
        ChangeSides();
        break;
    }
}
hoary hound
#

Show us the loops AllTheThings

fierce epoch
#

this is my loop

#

but

hoary hound
#

Brruuh

north dune
#

bruh

#

LMFAO

hoary hound
#

While true

#

Epic

barren shale
#

I dont trust that if statement

fierce epoch
#

when there is no button interactable

north dune
#

while true is 100% running forever

fierce epoch
#

this loop doesn't

#

start

barren shale
#

But i dont trust that if statement

#

My suggestion

#

Write a function that gives you all the empty squares

#

And choose a random one

#

Instead of the if statement

north dune
north dune
#

if you consider the break not stopping it because "true" is ALWAYS true, so this loop should repeat indefinitely

barren shale
#

Dude

#

Break

#

Breaks out of the loop

fierce epoch
#

wait

barren shale
#

Continue skips to the next iteration

north dune
#

so he only changes one variable with this loop

hoary hound
#

It means that the break is never reached

north dune
#

is what im saying

fierce epoch
#

i just need to do something and i brb

hoary hound
#

So the if condition is never met

barren shale
#

Instead of the untrustworthy if statement

#

Get all empty squares

north dune
barren shale
#

And choose a random one

north dune
#

lol i see now

barren shale
#

And remove while loop

north dune
#

if (buttonList[rand].interactable)
{
buttonTextList[rand].text = playerSide;
buttonList[rand].interactable = false;

fierce epoch
#

oh my fucking lord

barren shale
#

Idk why ur using a while loop tbh

fierce epoch
#

i brb

barren shale
#

No need to check if a square is empty if you know its empty

north dune
#

well i try to help but this gets confusing quick with 3 people giving input

hoary hound
#

Ye

north dune
#

if its still not working later i try again

barren shale
#

Yea

fierce epoch
#

lol

hoary hound
#

I'm just trying to figure out what the code is doing

fierce epoch
#

i

barren shale
#

While loops are geyh

fierce epoch
#

lmfao

#

lmao

#

i

#

i just

barren shale
#

Yes ur dump

#

We know

north dune
fierce epoch
#

i just changed a bit of code

keen shell
fierce epoch
#

and

#

you can't even play

#

lmfao

hoary hound
#

Woah

barren shale
#

Oh nice

fierce epoch
#

the bot is doing all its turn

#

and win

barren shale
#

Never use w while loop in unity

hoary hound
#

Bot do be cheating

barren shale
#

Super geyh

north dune
#

so id agree

hoary hound
#

Oh yeah

keen shell
#

Unless you're 100% sure it finishes

barren shale
#

Just makes a mess

#

Yes

hoary hound
#

Modding worldbox without knowing how unity works was very confusing

barren shale
#

It should

keen shell
barren shale
#

Bye gonna go Continue making my superior tic tac toe

hoary hound
#

Make 5d tic tac toe

#

Or was it chess

north dune
#

4d time travel tic tac toe

hoary hound
#

With time travel and shit

north dune
#

based off the chess game

#

yes exactly

hoary hound
#

Lol yeah not even try to understand how it works

north dune
#

its on sale right now

#

brb gonna go lose my mind

hoary hound
#

and no one has ever seen Cody again

north dune
hoary hound
#

They have been selling a time machine this whole time and no one noticed Tom

north dune
#

im considering hiring someone to do a couple specific things for my mod

#

fiverr has some big brains

fierce epoch
#

i go log in into fiverr and propose a worldbox mod help

#

cuz

#

i'm bad

#

but

#

fucking poor

north dune
#

i could put off some of online mod and other projects onto someone else with more experience

#

but then i dont learn as much

fierce epoch
#

cody i have a question

#

if you start a game on worldbox

#

put some villager

#

and save the world

#

if you don't touch anything

#

everytime you load the world

#

will it be the same "future" ?

hoary hound
#

Worldbox is not deterministic afaik

#

So it will be always different

fierce epoch
#

that's sad cuz iit would have been easier for an online mod

hoary hound
#

Wasn't Cody already working on multiplayer modmaximevilthink

fierce epoch
#

i know

#

that's why i was thniking about it

barren shale
#

No

#

It will be the same

#

Unless they cahnge the seed

#

Everytime you load the game

#

Cuz computer random isnt really random

#

It makes you feel like its random

#

But its just math

north dune
#

you can override the seeds determining some of the randomness like hamza said

#

and is exactly what im trying for online already

#

uni was on to the same idea

#

when clients connect to host, host sends them the current seed so they can update and hopefully have some of the same interactions pre-determined

#

it works decently for map generation, but theres like a 20% chance its mildly different

barren shale
#

Superior tic tac toe

#

Done in less than an hour

hoary hound
barren shale
#

With random AI

#

But the game doesnt freeze

#

Ez nub

#

Get rekt

#

Jk

#

I wrote it

#

To give you the sauce

#

So you can learn from it

barren shale
barren shale
#

Not the best way to write code since coding on phone isnt my thing

#

But it was fun

fierce epoch
#

howhat do you recommend

barren shale
#

My top recommendation is REMAKE

#

my second top recommendation is

#

Instead of while loop

#

Make a function that gives you a list of all empty squares

#

Pick one at random

fierce epoch
#

so

#

ye

#

ok

fierce epoch
#

a

#

foreach

#

loop

barren shale
#

But you want it to be random

#

Thats why you first make a list of all empty squares

#

So you can pick a random from the list

fierce epoch
#

ok

#

just

#

i gotta question

barren shale
#

Sure

fierce epoch
#

does that work

#

List<UnityEngine.UI.Text> = new ...;

barren shale
#

Im pretty sure

#

Make a list of the buttons

#

Or its the same thing

#

Right

fierce epoch
#

i have a list of all the TextObject in button object

barren shale
#

Yea

fierce epoch
#

but

#

to get all

#

like

#

i need to declare a variable

#

so

#

can i do <UnityEngine.UI.Text> ListName = new List<UnityEngine.UI.Text>();

barren shale
#

Yea

fierce epoch
#

ok

barren shale
#

Then foreach loop

#

If a text is empty

#

Add to list

#

Then return list

#

Ping me when u need me

#

Sometimes i dont notice the chat

fierce epoch
#

ok

valid skiff
#

hi?

keen shell
#

hi?

dry bolt
#

Ay what can I do if all I know is python lol

knotty root
dry bolt
#

C#?

knotty root
#

Really depends

#

What do you wanna develop in?

#

like games, websites, machine learning, ect?

#

@dry bolt

dry bolt
#

Games

knotty root
#

coughs coughs c++ is prob the best for game development but c# is good af too

dry bolt
#

What about automatons and machine learning

knotty root
#

You can go with r, julia, lisp too

knotty root
#

for automation

dry bolt
#

Ight thx

trail ocean
#

after exam, gonna add these vehicles into my unit pack >:3c

astral basin
trail ocean
#

sorry for late reply XD
I was white boarding the vehicle pics

#

like this

stark ravine
trail ocean
#

yea it's because They using mostly same vehicles.
but you can see difference.

#

this two looks same but they are used by other way

#

one is for transporting 4 officers, 2 criminals
the other is for transporting 2 officers, 4 criminals

barren shale
#

Or it should be even 2010

vocal folio
trail ocean
#

yeet codes

#

then everything will gonna be fine

#

but not about you. Matef.

bold swan
#

where do i learn lua

wet girder
#

don't use gay as an insult/joke

knotty root
bold rover
#

Have anyone here have access to GPT-3? (Im not begging just curious)

#

Probably the devs. Have access

#

It can generate some decent workable code to

barren shale
#

Lua

barren shale
#

And yes it can generate decent code

#

But first you have to teach it

#

Which will take longer than writing the code urself

#

Just wwit until its public

knotty root
#

Different languages have different speed

#

c++ is faster than most

barren shale
#

Yes, but it doesnt matter in game development

knotty root
#

It does

barren shale
#

Or else youd see games coded in assembly

knotty root
#

assembly is fast lol

barren shale
#

Binary games be like

#

AM SANIC

#

It really doesnt matter

#

U might gain like 3 fps

#

Cuz most of the load is on the gpu

#

It is the bottleneck

#

Not that 100 ms difference between languages

#

If ur doing somethings like calculating prime numbers then i would use c++

#

Cuz it would benefit from the speed

bold rover
#

ClosedAI

barren shale
#

No

#

U cant train it

#

Its too huge

#

You can give it instructions tho

#

And examples

bold rover
#

I know, It's just a misuse of words

#

But nonetheless the model is ridiculously big

barren shale
#

Yea

#

Wait for gpt4

#

Then theyll make gpt3 public

#

Like gpt2

bold rover
#

Im interested if GPT-neo can generate code better

#

Because there final goal is like 200B parameters then GPT-3 175B parameters

#

Who Em I kidding it's like 25Billion more that's incredible

#

But just think of it, When people suggest new features they can probably use a AI software to make it and refined the code

barren shale
#

Still not ready for this

#

In all the demos youve seen

#

Its specific pieces of code

#

Not everything works

#

It makes mistakes too

#

Of course none will brag about gpt 3 being wrong

#

Thats ehy you only see the working stuff

#

I know someone that has access

#

His friend got it and theyre both using it

#

Its fun

#

You can write stories and tell it to complete them

#

Or questions with meh accuracy in answers

#

Its like 70% accurate

hoary hound
#

I have GPT-3 access, messed a lot with it (I'm actually running out of free tokens). What I can say is that code generation is not really a strength of gpt. Yeah it can generate decent code, but you first need to give examples, and code examples take a lot of tokens (considering the biggest prompt you can send is around 2000 tokens).

#

There might be better ways to do it than I did, but yeah I wouldn't rely too much on gpt-3 for code generation, at least for now

bold rover
bold rover
#

But im not surprised if there's an AI that can generate code much better in this decade

shell rose
#

lol nice

barren shale
#

Stronk TicTacToe ai

#

Cant win against it

fierce epoch
#

@north dune are you using the Unity MLAPI to do your multiplayer thing ?

orchid frigate
#

so today i have been thinking the entire day about how to make my room generation script work and it was all good until i actually opened vs code

#

i have no idea what im doing once more

barren shale
#

I can help you with that

#

If you want

orchid frigate
#

no its like the dream joke where after he cheated everyone asked him for his mod folder

barren shale
#

Oh

orchid frigate
#

hmm but now that we are here can you help me with room generation

barren shale
#

Mod folder be like: (definitely not a AI mod).mod

#

Sure

orchid frigate
barren shale
#

Can you explain how you want your rooms to generate

#

The rules

lofty fern
#

print = (
“hack” ;
)

barren shale
lofty fern
#

i’d call myself a coder 😎

#

it’s paradox code language

barren shale
#

Ahh yes

#

A made up language

orchid frigate
# barren shale Sure

so i have generated my first room and i have made a roomStats class where i store my x and y axis floats for my coordinate system (to the right will be (1,0) so on) but how do i put there coordinates to this room, how do i assign them more like

lofty fern
#

i use to be a modded for that game

barren shale
#

Just call it Room

#

Wtf is roomstats

orchid frigate
orchid frigate
#

wait

barren shale
#

A room doesnt have stats

#

A room have a postions and a size

orchid frigate
#

that doesnt make any sense actually

barren shale
#

Xd

orchid frigate
#

right

barren shale
#

Make it a struct

#

Not a class

orchid frigate
#

ok so i make a room script, inside the room class i put the stats including the cooridnates

#

and then just use a list

barren shale
#

Can you draw

#

What the room generator

#

Should do

orchid frigate
#

similar to binding of isaac room generation