uqbar-project / wollok-site

Wollok Programming Language Web Site
GNU Lesser General Public License v3.0
1 stars 10 forks source link

Ajustes game #21

Closed lspigariol closed 5 years ago

lspigariol commented 5 years ago

cuando fue eso?

efectivamente, antes funcionaba y hay varios juegos que lo usaban, por ejemplo el de pacman.

pero algo se rompió cuando las posiciones dejaron de ser mutables. varios de los ejemplos de estudiantes de este cuatrimestre hacen el movimiento a mano. hay que resolver que alcance le queremos dar al visualcharacter.

El mar., 23 jul. 2019 a las 12:04, Fernando Dodino (< notifications@github.com>) escribió:

@fdodino commented on this pull request.

In documentacion/conceptos/game.md https://github.com/uqbar-project/wollok-site/pull/21#discussion_r306371998 :

-Tip: también saben gritar, fijate qué pasa si reemplazás say por scream.

+```wollok

+game.addVisualCharacterIn(wollok, game.origin())

+//o game.origin().drawCharacter(wollok)

+```

+

+wollok-character

+

+##### Otra opción

+Otra forma es ubicar el personaje especial mediante el método addVisualCharacter(object) sin indicar la posición inicial, sino tomándola del mismo obejeto.

+

+```wollok

+game.addVisualCharacter(wollok)

+```

+En este caso, el objeto debe tener el método position() que se utiliza sólo para determinar la posición inicial. Dado que las sucesivas posiciones surgen a partir del uso del teclado, se ignora luego su valor de retorno.

yo les hice laburar el TP de Wollok Game a los chicos con un visual character y me funcionó ok, incluso haciéndolo volver a la posición inicial si se lo seteás.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/uqbar-project/wollok-site/pull/21?email_source=notifications&email_token=ACZRXG67CPXPYXINQYT5PZDQA4MYDA5CNFSM4IELI6UKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB7JNPOQ#discussion_r306371998, or mute the thread https://github.com/notifications/unsubscribe-auth/ACZRXGYODBFTT7CTBDK3V5TQA4MYDANCNFSM4IELI6UA .

npasserini commented 5 years ago

Yo descubrí que no lo necesito, prefiero hacerlo a mano y si a alguien le interesare, recomendaría no usarlo, creo que es mucho más didáctico hacerlo a mano. Este cuatrimestre ni lo mencionamos.

Pero supongo que no jode dejarlo.

El vie., 26 de jul. de 2019 a la(s) 10:51, Lucas Spigariol ( notifications@github.com) escribió:

cuando fue eso?

efectivamente, antes funcionaba y hay varios juegos que lo usaban, por ejemplo el de pacman.

pero algo se rompió cuando las posiciones dejaron de ser mutables. varios de los ejemplos de estudiantes de este cuatrimestre hacen el movimiento a mano. hay que resolver que alcance le queremos dar al visualcharacter.

El mar., 23 jul. 2019 a las 12:04, Fernando Dodino (< notifications@github.com>) escribió:

@fdodino commented on this pull request.

In documentacion/conceptos/game.md < https://github.com/uqbar-project/wollok-site/pull/21#discussion_r306371998

:

-Tip: también saben gritar, fijate qué pasa si reemplazás say por scream.

+```wollok

+game.addVisualCharacterIn(wollok, game.origin())

+//o game.origin().drawCharacter(wollok)

+```

+

+wollok-character

+

+##### Otra opción

+Otra forma es ubicar el personaje especial mediante el método addVisualCharacter(object) sin indicar la posición inicial, sino tomándola del mismo obejeto.

+

+```wollok

+game.addVisualCharacter(wollok)

+```

+En este caso, el objeto debe tener el método position() que se utiliza sólo para determinar la posición inicial. Dado que las sucesivas posiciones surgen a partir del uso del teclado, se ignora luego su valor de retorno.

yo les hice laburar el TP de Wollok Game a los chicos con un visual character y me funcionó ok, incluso haciéndolo volver a la posición inicial si se lo seteás.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/uqbar-project/wollok-site/pull/21?email_source=notifications&email_token=ACZRXG67CPXPYXINQYT5PZDQA4MYDA5CNFSM4IELI6UKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB7JNPOQ#discussion_r306371998 , or mute the thread < https://github.com/notifications/unsubscribe-auth/ACZRXGYODBFTT7CTBDK3V5TQA4MYDANCNFSM4IELI6UA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/uqbar-project/wollok-site/pull/21?email_source=notifications&email_token=ABDLKOMQHHLX5CPOZOFEPR3QBL6OXA5CNFSM4IELI6UKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD24VCLQ#issuecomment-515461422, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDLKOK5XQLBRLRWXBJEZOTQBL6OXANCNFSM4IELI6UA .

lspigariol commented 5 years ago

El tema es que varios de los ejemplos que hay usan al visualcharacter, los estuve arreglando para que al menos no rompan, pero no funcionan bien. Algunos quieren usar el getter position() y otros además quieren setearlo. Si no es conveniente arreglarlo, deprequemoslo y adapto los ejemplos, pero tal vez sea más simple arreglarlo y que cada uno elija usarlo o no, o cuando.

El vie., 26 de jul. de 2019 10:56 a. m., Nico Passerini < notifications@github.com> escribió:

Yo descubrí que no lo necesito, prefiero hacerlo a mano y si a alguien le interesare, recomendaría no usarlo, creo que es mucho más didáctico hacerlo a mano. Este cuatrimestre ni lo mencionamos.

Pero supongo que no jode dejarlo.

El vie., 26 de jul. de 2019 a la(s) 10:51, Lucas Spigariol ( notifications@github.com) escribió:

cuando fue eso?

efectivamente, antes funcionaba y hay varios juegos que lo usaban, por ejemplo el de pacman.

pero algo se rompió cuando las posiciones dejaron de ser mutables. varios de los ejemplos de estudiantes de este cuatrimestre hacen el movimiento a mano. hay que resolver que alcance le queremos dar al visualcharacter.

El mar., 23 jul. 2019 a las 12:04, Fernando Dodino (< notifications@github.com>) escribió:

@fdodino commented on this pull request.

In documentacion/conceptos/game.md <

https://github.com/uqbar-project/wollok-site/pull/21#discussion_r306371998

:

-Tip: también saben gritar, fijate qué pasa si reemplazás say por scream.

+```wollok

+game.addVisualCharacterIn(wollok, game.origin())

+//o game.origin().drawCharacter(wollok)

+```

+

+wollok-character

+

+##### Otra opción

+Otra forma es ubicar el personaje especial mediante el método addVisualCharacter(object) sin indicar la posición inicial, sino tomándola del mismo obejeto.

+

+```wollok

+game.addVisualCharacter(wollok)

+```

+En este caso, el objeto debe tener el método position() que se utiliza sólo para determinar la posición inicial. Dado que las sucesivas posiciones surgen a partir del uso del teclado, se ignora luego su valor de retorno.

yo les hice laburar el TP de Wollok Game a los chicos con un visual character y me funcionó ok, incluso haciéndolo volver a la posición inicial si se lo seteás.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <

https://github.com/uqbar-project/wollok-site/pull/21?email_source=notifications&email_token=ACZRXG67CPXPYXINQYT5PZDQA4MYDA5CNFSM4IELI6UKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB7JNPOQ#discussion_r306371998

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/ACZRXGYODBFTT7CTBDK3V5TQA4MYDANCNFSM4IELI6UA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/uqbar-project/wollok-site/pull/21?email_source=notifications&email_token=ABDLKOMQHHLX5CPOZOFEPR3QBL6OXA5CNFSM4IELI6UKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD24VCLQ#issuecomment-515461422 , or mute the thread < https://github.com/notifications/unsubscribe-auth/ABDLKOK5XQLBRLRWXBJEZOTQBL6OXANCNFSM4IELI6UA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/uqbar-project/wollok-site/pull/21?email_source=notifications&email_token=ACZRXG762UKW2LGNS7IIASTQBL7CJA5CNFSM4IELI6UKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD24VSGY#issuecomment-515463451, or mute the thread https://github.com/notifications/unsubscribe-auth/ACZRXG5CKPHOUVGTJ5W5YHTQBL7CJANCNFSM4IELI6UA .

npasserini commented 5 years ago

Es exactamente lo que decía, si lo quieren usar no me jode dejarlo.

Ahora, ¿qué es lo que no anda? ¿Hay un bug reportado?

El mar., 30 de jul. de 2019 a la(s) 17:23, Lucas Spigariol ( notifications@github.com) escribió:

El tema es que varios de los ejemplos que hay usan al visualcharacter, los estuve arreglando para que al menos no rompan, pero no funcionan bien. Algunos quieren usar el getter position() y otros además quieren setearlo. Si no es conveniente arreglarlo, deprequemoslo y adapto los ejemplos, pero tal vez sea más simple arreglarlo y que cada uno elija usarlo o no, o cuando.

El vie., 26 de jul. de 2019 10:56 a. m., Nico Passerini < notifications@github.com> escribió:

Yo descubrí que no lo necesito, prefiero hacerlo a mano y si a alguien le interesare, recomendaría no usarlo, creo que es mucho más didáctico hacerlo a mano. Este cuatrimestre ni lo mencionamos.

Pero supongo que no jode dejarlo.

El vie., 26 de jul. de 2019 a la(s) 10:51, Lucas Spigariol ( notifications@github.com) escribió:

cuando fue eso?

efectivamente, antes funcionaba y hay varios juegos que lo usaban, por ejemplo el de pacman.

pero algo se rompió cuando las posiciones dejaron de ser mutables. varios de los ejemplos de estudiantes de este cuatrimestre hacen el movimiento a mano. hay que resolver que alcance le queremos dar al visualcharacter.

El mar., 23 jul. 2019 a las 12:04, Fernando Dodino (< notifications@github.com>) escribió:

@fdodino commented on this pull request.

In documentacion/conceptos/game.md <

https://github.com/uqbar-project/wollok-site/pull/21#discussion_r306371998

:

-Tip: también saben gritar, fijate qué pasa si reemplazás say por scream.

+```wollok

+game.addVisualCharacterIn(wollok, game.origin())

+//o game.origin().drawCharacter(wollok)

+```

+

+wollok-character

+

+##### Otra opción

+Otra forma es ubicar el personaje especial mediante el método addVisualCharacter(object) sin indicar la posición inicial, sino tomándola del mismo obejeto.

+

+```wollok

+game.addVisualCharacter(wollok)

+```

+En este caso, el objeto debe tener el método position() que se utiliza sólo para determinar la posición inicial. Dado que las sucesivas posiciones surgen a partir del uso del teclado, se ignora luego su valor de retorno.

yo les hice laburar el TP de Wollok Game a los chicos con un visual character y me funcionó ok, incluso haciéndolo volver a la posición inicial si se lo seteás.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <

https://github.com/uqbar-project/wollok-site/pull/21?email_source=notifications&email_token=ACZRXG67CPXPYXINQYT5PZDQA4MYDA5CNFSM4IELI6UKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB7JNPOQ#discussion_r306371998

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/ACZRXGYODBFTT7CTBDK3V5TQA4MYDANCNFSM4IELI6UA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/uqbar-project/wollok-site/pull/21?email_source=notifications&email_token=ABDLKOMQHHLX5CPOZOFEPR3QBL6OXA5CNFSM4IELI6UKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD24VCLQ#issuecomment-515461422

, or mute the thread <

https://github.com/notifications/unsubscribe-auth/ABDLKOK5XQLBRLRWXBJEZOTQBL6OXANCNFSM4IELI6UA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/uqbar-project/wollok-site/pull/21?email_source=notifications&email_token=ACZRXG762UKW2LGNS7IIASTQBL7CJA5CNFSM4IELI6UKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD24VSGY#issuecomment-515463451 , or mute the thread < https://github.com/notifications/unsubscribe-auth/ACZRXG5CKPHOUVGTJ5W5YHTQBL7CJANCNFSM4IELI6UA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/uqbar-project/wollok-site/pull/21?email_source=notifications&email_token=ABDLKOMWCO3BW4AREGCYCNTQCCPLRA5CNFSM4IELI6UKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3FGOAA#issuecomment-516581120, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDLKOMXNRTZC3BHQL5TO5LQCCPLRANCNFSM4IELI6UA .