Welcome to Blazecore Blog

Congratulations you have arrived safely

Latest posts

Sorting a Laravel Collection

Laravel Collections are a powerful feature of the Laravel framework that allow you to work with arrays of data in a more expressive and fluent way. One common task when working with collections is sorting them in a particular order. In this blog...

Balancing Teams base on Skill

Suppose you had a set of players for a game and you had to build teams based on those players. Assume that you also had to try to make the teams as evenly matched as possible. The first thing to do is to establish a player skill rating. Let's say...

Creating a game engine that learns

To create an engine for a tic-tac-toe game that can learn from its games, you could use a reinforcement learning algorithm. Reinforcement learning is a type of machine learning that involves training an agent to make decisions based on feedback...

Searching a Laravel collection

I had a Laravel collection and I wanted to search it for some content. Surely there is way? Let's say you have a collection of users and you want to find all users whose age is greater than 25. You can use the filter() method of the collection to...