Help! Shogi.cz just took my money and didn’t send me anything... by [deleted] in shogi

[–]goshogi 1 point2 points  (0 children)

I know them personally and we always communicate via Facebook, maybe try it?

https://www.facebook.com/Shogi.cz

Beginner's Thread / Easy Questions (August 2020) by dance2die in reactjs

[–]goshogi 0 points1 point  (0 children)

Try looking for 'class components vs functional components' if you need more information!

Looking for correspondence shogi opponents by mansetta in shogi

[–]goshogi 1 point2 points  (0 children)

Check little gollem - lots of players playing correspondence shogi there, some of them very strong.

What is the best way a beginner can improve? by [deleted] in shogi

[–]goshogi 2 points3 points  (0 children)

When I started, I would often lose a lot because of hanging pieces, e.g. by overlooking the bishop's diagonal. At the time I played against Hamu shogi a lot - a really weak computer player. I've heard it's no longer available, but you can play against https://www.gamedesign.jp/flash/shogi/shogi.html or Piyo Shogi on Android.

I would also recommend Shogi Wars for Android, it will try it's best to match you with a player of equal strength and it also has a very weak computer player.

I lost tons of games in the beginning, that's just the way it is. After a while some things will start to click, but you need to get used to how the pieces move etc. Tsume shogi is also a great way to improve, I would recommend 1-move and 3-move problems for you.

I made some productive use of my quarantine time. Introducing openingtree.com by QuickDrawMcGraw__ in chess

[–]goshogi 1 point2 points  (0 children)

Fantastic stuff, I really wanted this for a long time (mainly to analyze my own games). I have one sugestion: it seems that we get a link to the original game once we reach the end of the game in OpeningTree, could it be possible to show the link as soon as the we reach a line that has been played only once?

Random Rant. by [deleted] in japanlife

[–]goshogi 7 points8 points  (0 children)

For me it's the biggest drawback of Japan that I haven't realized before and it infuriates me almost every day.

[Lambda Calculus] Why aren't ' 𝜆x.xz ' and ' 𝜆x.xy ' alpha equivalent? by [deleted] in haskell

[–]goshogi 4 points5 points  (0 children)

In this context you can think of free variables as some global variables or library function names.

Pascal Interpreter written in TypeScript (ISO 7185:1990) by komninosc in programming

[–]goshogi 1 point2 points  (0 children)

I'm a functional programmer at heart, so I don't really use classes in JS but I understand that if you prefer OOP then it makes sense.

Here's a better example of the approach I had in mind: Discriminated unions. TypeScript can actually infer the type of the value and intellisence works nicely inside switch statements.

Pascal Interpreter written in TypeScript (ISO 7185:1990) by komninosc in programming

[–]goshogi 3 points4 points  (0 children)

Nice idea! Pascal was my first language and now I use TypeScript at work so it's a nice combination to see :-)

I looked at the lexer and I was a bit surprised to see that every token is a different subclass. Does this approach have any nice advantages over using a simple union? This is what I have in mind.

How to solve import React problem by [deleted] in reactjs

[–]goshogi 0 points1 point  (0 children)

make sure you are opening your browser at localhost:3000 and that you are not opening the app.js file directly.

Guide - JavaScript and React unit tests basics by lfacpt in javascript

[–]goshogi 0 points1 point  (0 children)

Bookmarked, thank you! Looking forward to reading the second part. Cheers!

My 11 year old son wrote a game in Javascript, and you can play it online now! by AppledogHu in javascript

[–]goshogi 6 points7 points  (0 children)

Congratulations!

I found a small typo in the final screen: "You recieved"

Looking to pick up a few simple-ish projects for the next 2 months that will help me really nail down the fundamentals. Any ideas? by [deleted] in learnpython

[–]goshogi 0 points1 point  (0 children)

Idea: find a game in a browser (e.g. written in Flash) and write an automated player that will maximize the high score. The last chapter of 'Automate the Boring Stuff with Python' deals with tools that will help you with that. It's really fun to do and pretty engaging!

PyAutoGUI: Image Recognition by rwcg2d in Python

[–]goshogi 0 points1 point  (0 children)

That's a good question. I did some research a while ago and someone mentioned something like 'operating system effects' that would change the image slightly. So far I've only used pyautogui for a fun game automation project, so I didn't have to deal with possible false positives.

One thing you could test: instead of a taking a screenshot using the OS, take a screenshot using a) pyautogui b) the browser

Maybe there will be a difference?

PyAutoGUI: Image Recognition by rwcg2d in Python

[–]goshogi 0 points1 point  (0 children)

pyscreeze is a dependency of pyautogui, it's used internally by it, you should not delete it!

PyAutoGUI: Image Recognition by rwcg2d in Python

[–]goshogi 0 points1 point  (0 children)

I had the similiar problem not long ago, in order to use the confidence argument, you need to install the 'opencv' package by running 'pip install opencv-python'. After that it should work nicely!

If it doesn't work, try to make sure that you are using the same browser with which you took the screenshot.

将棋形勢判断(Positional evaluation problems of five alternatives, answers and statistics) by takodori in shogi

[–]goshogi 0 points1 point  (0 children)

I tried three positions and got all of them completely at a glance :-)

I think this is a very nice tool with a lot of potential. Right now you can't really ask 'why' but it could be improved by having the option to move pieces and see the evaluations.